Solved - but I'm still worried by the fact that live preview and view mode work differently.
Solution: Wrap the button code in a fieldmanger like this: ie: <$fieldmangler> <$button ...> ... as below ... <$/fieldmangler> On Saturday, 15 December 2018 10:42:57 UTC+1, joearms wrote: > > > > The code makes two buttons. One to add a tag to the current widget another > to remove the tag > > Works fine in edit mode with live preview. > > Stops working when I save the tiddler. > > What's happening here? > > Cheers > > /Joe > > > > <$button> > <$action-sendmessage $message="tm-add-tag" $param="example"/> > add example tag > </$button> > > <$button> > <$action-sendmessage $message="tm-remove-tag" $param="example"/> > remove example tag > </$button> > > -- 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 https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/d996097a-47b9-4a16-bdb5-25896e7790bd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
