[tw] Re: [TW5] Date stamp - any method to do this in mid text?

2016-01-31 Thread Mat
Tobias, both of your codes in #2258 cause problems when the text has a quotation mark at end, i.e when typing e.g: anything like this " (disregard the coloration) I'm guessing the quotation mark in the text is interpreted as some end or

[tw] Re: [TW5] Date stamp - any method to do this in mid text?

2016-01-28 Thread Tobias Beer
Hi Mat, so my guess is that the problem lies in that the tiddler is attempting to > apply the stamp to itself...? > Sure, that was the idea. And I was thinking that the action widget would only ever do something when I actually click the button. It appears that is not the case, which makes me

[tw] Re: [TW5] Date stamp - any method to do this in mid text?

2016-01-28 Thread Mat
> > which makes me think that this smells of a bug. > Interesting. I'd be happy to post an issue... but basically just how to reproduce the problem without any qualified additional info. Could you post a better issue? The idea was to set the text of the draft, not of the original, though.

[tw] Re: [TW5] Date stamp - any method to do this in mid text?

2016-01-28 Thread Tobias Beer
Hi Mat, > Interesting. I'd be happy to post an issue... but basically just how to > reproduce the problem without any qualified additional info. Could you post > a better issue? > Kept it somewhat simple: *#2258 edit button for appending a datestamp throws js error*

[tw] Re: [TW5] Date stamp - any method to do this in mid text?

2016-01-28 Thread Tobias Beer
Hi Mat, I tried this, but it throws a js error. No idea why: title: $:/_my/ui/button/datestamp tags: $:/tags/EditToolbar \define button() <$button> <$action-setfield $field="text" $value="""$(currentText)$ $(dateStamp)$"""/> {{$:/core/images/new-journal-button}} \end <$vars

[tw] Re: [TW5] Date stamp - any method to do this in mid text?

2016-01-28 Thread Mat
Tobias, thanks for looking at this! I get your code to work if I specify a(nother) tiddler (..but, see below), so my guess is that the problem lies in that the tiddler is attempting to apply the stamp to itself...? But - it is also the matter that stamp is applied not to the editing draft,