On Thu, Mar 4, 2021 at 8:22 PM Mat <[email protected]> wrote: > Thanx Mohammad.
Hi Mat > It is in a template for modifying the <<currentWidget>>, so if I put it in > a separate tiddler I don't know what to type here: > > <$edit-text tiddler=??????? field=f/> > Use a template contains below line with all other coding you need \define tmpTid() xx$:/temp/$(currentTiddler)$ <$edit-text tiddler=<<tmpTid>> field=f/> I think it should work. > > To be more specific: > > All tiddlers that are tagged Image, have a htm <img> element to show an > image. The <img> tag has a width attribute. But this width of the image > should be possible to control - so I want a template to show a an > EditTextWidget above the image. This widget should show the width field > of the current tiddler. > > ...but this doesn't seem to work; it loses focus as soon as I type a > letter into the edittextwidget. > > <:-) > > On Thursday, March 4, 2021 at 3:04:59 PM UTC+1 Mohammad wrote: > >> Mat, I think by every input in the text box, TW refresh the tiddler! >> So, why no to use a temp tiddler then? >> >> >> >> Best wishes >> Mohammad >> >> >> On Thu, Mar 4, 2021 at 5:24 PM Mat <[email protected]> wrote: >> >>> It is a known issue that an EditTextWidget loses focus if it edits the >>> current tiddler (see doc tiddler >>> <https://tiddlywiki.com/prerelease/#EditTextWidget>, under "Notes") I >>> was expecting the TiddlerWidget to be able to prevent this by changing the >>> context for the editor, but it doesn't work. Why doesn't this work and >>> what should I do if I don't want to involve other (real) tiddlers? >>> >>> <$vars curr=<<currentTiddler>>> >>> <$tiddler tiddler=dummy> >>> <$edit-text tiddler=<<curr>> field=f/> >>> </$tiddler> >>> </$vars> >>> >>> Thanks! >>> >>> <:-) >>> >>> -- >>> 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 view this discussion on the web visit >>> https://groups.google.com/d/msgid/tiddlywiki/df1785e9-a506-4099-8090-f3d59727a1e2n%40googlegroups.com >>> <https://groups.google.com/d/msgid/tiddlywiki/df1785e9-a506-4099-8090-f3d59727a1e2n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/7ee00a05-7b21-4122-86c5-d91cfcef43dfn%40googlegroups.com > <https://groups.google.com/d/msgid/tiddlywiki/7ee00a05-7b21-4122-86c5-d91cfcef43dfn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMBmKgrtR%2Bdd10zJHGbCDLLs3%2B%2BWLmD5%2BDz%2BcbkU-U5_dA%40mail.gmail.com.

