The first issue here is the use of IDs to reference the edit controls,
which we can fix, but the complexity boils down to a slightly different
problem: the way that clicking on a toolbar button loses the focus and
selection in the text box. I've added a ticket that addresses this issue by
making it possible for a button to access the focus and selection details
before it was invoked:

https://github.com/Jermolene/TiddlyWiki5/issues/1537

I've been working on an implementation that I hope to finish in the next
few days. Once that's done we'll be able to add an extensible toolbar to
the edit template, allowing a substantial part of Stephen's vision.

Best wishes

Jeremy.




On Fri, Feb 27, 2015 at 3:54 PM, Astrid Elocson <[email protected]> wrote:

> The core faces exactly this problem when the user clicks one of the
> buttons on the standard edit toolbar (such as Cancel), or when they press
> the equivalent key (such as Escape). The edit template generates keyboard
> widgets and button widgets, and the JavaScript implementations of these
> widgets use the currentTiddler variable to tell them which tiddler to work
> with:
>
> KeyboardWidget.prototype.dispatchMessage = function(event) {
>     this.dispatchEvent({type: this.message, param: this.param,
> tiddlerTitle: this.getVariable("currentTiddler")});
> };
>
> – æ
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWikiDev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywikidev.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to