Hi MHill,
The following code will do what you want (except that the time is in a 24-hr
format) for the case of editing an existing tiddler:
config.commands.editTiddler.handler_old =
config.commands.editTiddler.handler;
config.commands.editTiddler.handler = function(evt,src,title){
config.commands.editTiddler.handler_old.call(this,evt,src,title);
var text = jQuery(story.getTiddler(title)).find('textarea[edit=text]');
var leadingNewline = text.val() ? '\n\n' : '' ;
text.val(text.val() + leadingNewline + '[' + (new
Date().formatString('YYYY-0MM-0DD hh:mm')) + '] ');
}
Put that in a tiddler, name it whatever you want, and tag it with
'systemConfig'. Restart TW and edit.
Regards,
axs
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/tiddlywiki/-/ZxNID0wDeGQJ.
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/tiddlywiki?hl=en.