Using <, >, " and / in widgets

49 views
Skip to first unread message

David Gifford

unread,
Nov 18, 2016, 11:30:47 AM11/18/16
to tiddl...@googlegroups.com
Hi guys

I would like to create the following for the editor toolbar, since I use this a lot. But I know that the <, >,  / and  = symbols will break the widget. Is there a reference webpage for knowing what I need to replace certain characters with in order not to break things like this? I didn't see anything on TiddlyWiki, but it might simply be because I do not know what to put in the search window.

<$action-sendmessage
    $message="tm-edit-text-operation"
    $param="wrap-selection"
    prefix="<span class="doublelist">"
    suffix="</span>"
/>

Just to clarify, the 'wrap with @@.doublelist @@' option isn't an option in my case.

Mark S.

unread,
Nov 18, 2016, 12:13:51 PM11/18/16
to TiddlyWiki
Hi Dave!

That was very educational. I had no idea it was so easy to make buttons now.

This code seems to work:


<$action-sendmessage
    $message="tm-edit-text-operation"
    $param="wrap-selection"
    prefix="""
<span class="doublelist">"""
    suffix="""
</span>"""
/>

As you can see, all I did was turn the double quotes around the prefix and suffix objects with triple quotes.

HTH
Mark

David Gifford

unread,
Nov 18, 2016, 12:22:44 PM11/18/16
to tiddl...@googlegroups.com
Wow that worked like a charm. Thanks!

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/snUFw21-YR0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/394632b7-11eb-47d4-b274-cfa6b5bfa71c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
David Gifford
Christian Reformed World Missions, Mexico City

Reply all
Reply to author
Forward
0 new messages