Re: [twdev] Re: ANN: widget tutorial

2019-02-22 Thread Brian Theado
More progress. I wrote the child widget tutorial with lots of parse tree and widget tree examples. See https://btheado.github.io/tw-widget-tutorial/#Child%20widgets%20tutorial. Best viewed with a wider screen and with the sidebar hidden. On Sun, Feb 17, 2019 at 9:21 AM Brian Theado wrote: > I

Re: [twdev] Re: Help with saving a widget's tiddler content from external library code

2019-02-22 Thread Simon Huber
> > The easiest way of doing all this would be using the way the codemirror engine does it (have a look at tiddlywiki.com/prerelease and look at $:/plugins/tiddlywiki/codemirror/edit-codemirror.js) * clone the edit-codemirror.js tiddler, make it export edit-sftype (for example) * it will be

Re: [twdev] Re: Help with saving a widget's tiddler content from external library code

2019-02-22 Thread Simon Huber
> > > On Fri, Feb 22, 2019 at 2:20 PM Simon Huber > wrote: > >> I am having some trouble understanding how to update the text and other >>> fields of a tiddler my widget editor works on. >>> >>> I am at the point where the editor is holding >>> (1) editor.widget, a ref to the widget it was

Re: [twdev] Re: Help with saving a widget's tiddler content from external library code

2019-02-22 Thread stefano franchi
On Fri, Feb 22, 2019 at 2:20 PM Simon Huber wrote: > I am having some trouble understanding how to update the text and other >> fields of a tiddler my widget editor works on. >> >> I am at the point where the editor is holding >> (1) editor.widget, a ref to the widget it was called from and >>

[twdev] Help with saving a widget's tiddler content from external library code

2019-02-22 Thread stefano franchi
I am having some trouble understanding how to update the text and other fields of a tiddler my widget editor works on. I am at the point where the editor is holding (1) editor.widget, a ref to the widget it was called from and (2) fieldUpdates, an object with field/value pairs for all the