Hi Eric,

I've posted messages using the facility provided at tiddlytools.com concerning the use of store.saveTiddler() in in QuickEdit_split, SplitTiddler, and StorySaverPlugin within the TiddlySpace environment. I don't know if that facility is working since in the several weeks since posting my first message there, I've seen no response. Perhaps some filter somewhere is dropping stuff on the floor.

The messages include a fix that I think is compatible with standalone use of TiddlyWikis. The fix consists of replacing calls to store.saveTiddler() with calls to a function defined as saveNewTiddler() below:

    var saveNewTiddler = function(title, text, tags, fields) {
        var newTiddler = store.saveTiddler(title, title, text,
            config.options.txtUserName, new Date(), tags,
            merge(merge({},fields),config.defaultCustomFields));
        autoSaveChanges(null, [newTiddler]);
        return newTiddler; }
The problem with calling store.saveTiddler() without merging in config.defaultCustomFields within the TiddlySpace environment is, of course, endemic and, by experience, crops up quite generally with the plugins I've been (most gratefully) using from tiddlytools.com. Without the fix, new tiddlers intended to be saved do not, in fact, get saved on the hosting server.

What are your thoughts on the fix?

/b

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to