It sounds like you would like to edit javascript in a mode similar to a code editor.
You can use the code mirror plugin and the javascript for codemirror plugin to edit javascript text. You can get the plugins from the stand-alone TW by going to control panel (cog wheel) --> plugins (tab) --> official plugins (button) Search for codemirror and javascript . On Wednesday, September 15, 2021 at 11:46:54 PM UTC-7 Pekka wrote: > How can Drafts be edited with JavaScript? > > I would like to parse the text in a draft according to more complicated > rules than what is currently possible with existing widgets, e.g. > tm-edit-text-operation. > > I have tried *this.wiki.setText(...)*, but it doesn't work. > > What would be the easiest way to change the text field in a Draft Tiddler > according to arbitrary rules? > > > Pekka > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/46a11133-5932-4dc6-99f6-fc40522239b7n%40googlegroups.com.