Hi Tony > > Is it possible to have my widget alter the contents? I know it is possible > to edit the text of the whole twiddler, but was hoping for something a > little more straight-forward that didn't require finding the particular > instance of my widget. >
There's no support at the moment for widgets to modify the wikitext from which they were parsed. Part of the reason is that the possibility of assembling wikitext within a macro means that there is not necessarily a simple correspondence between an instance of a widget and the original source wikitext. The TiddlyWiki approach would be instead for <$mywidget> to reference its content in another tiddler, and to modify the content of that tiddler as required. Best wishes Jeremy. > > I tried updating this.parseTreeNode.children but that didn't seem to have > any effect on the actual twiddler contents. > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" 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/tiddlywiki. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/f1a8e2ea-b921-4c2d-af8d-25feaa021aff%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/f1a8e2ea-b921-4c2d-af8d-25feaa021aff%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 "TiddlyWiki" 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/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAPKKYJYbYg8gWfSXqJaS1yMLRs1yKjcKLwD-tNMD9jB82dFrig%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

