Here's the replacement. Seems to work

\define strex(content:"TextStretch", label:"…", start:"[", end:"]", 
class:"", id:"default")
    <$set name="state" value=<<qualify "$:/state/strex/$id$">> >
        <span class="strex-container $class$">
                <$reveal type="nomatch" state=<<state>> text="visible" 
animate="yes">
                    <$button set=<<state>> setTo="visible" 
class="strex-open $class$" tooltip="more info">
                        $label$
                    </$button>
                </$reveal>
                <$reveal type="match" state=<<state>> text="visible" 
animate="yes">
                    <span class="strex-all $class$">
                        <span class="strex-inner $class$">
                            <$button set=<<state>> setTo="hidden" 
class="strex-close strex-start $class$" tooltip="hide text part">
                                $start$
                                <$action-setfield $tiddler=<<state>> 
$value="" />
                            </$button>
                            <span class="strex-content 
$class$">$content$</span>
                        </span><$button set=<<state>> setTo="hidden" 
class="strex-close strex-end $class$" tooltip="hide info">
                            $end$
                            <$action-setfield $tiddler=<<state>>/>
                        </$button>
                    </span>
                </$reveal>
        </span>
    </$set>
\end

-- 
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 post to this group, send email to tiddlywiki@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/eb21dba3-6310-4e31-b216-0c502d007217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to