On Wednesday, December 16, 2015 at 11:47:58 AM UTC-8, Tobias Beer wrote:
>
> Hi K,
>
> Here's a quick and dirty toolbar button that would allow you to toggle 
> between wysiwyg and tiddlywiki markup (or attached as a .tid file):
>
> title: $:/.tb/ui/Buttons/wysiwyg
> caption: {{$:/core/images/storyview-pop}} wysiwyg
> description: toggle wysiwyg
> list-before:
>
> <$reveal type="match" text={{!!type}} default="text/html" class=
> "dark-button">
> <$button tooltip="turn off wysiwyg editor" class=<<tv-config-toolbar-class
> >>>
> <$action-setfield type=""/>
> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
> {{$:/core/images/storyview-pop}}
> </$list>
> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
> <span class="tc-btn-text">wysiwyg</span>
> </$list>
> </$button>
> </$reveal>
> <$reveal type="nomatch" text={{!!type}} default="text/html">
> <$button tooltip="turn on wysiwyg" class=<<tv-config-toolbar-class>>>
> <$action-setfield type="text/html"/>
> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
> {{$:/core/images/storyview-pop}}
> </$list>
> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
> <span class="tc-btn-text">wysiwyg</span>
> </$list>
> </$button>
> </$reveal>
> <style>
> .dark-button svg {fill:#666 !important;}
> .dark-button:hover svg {fill:#ccc !important;}
> </style>
>
> Best wishes,
>
> Tobias.
>

Thanks for your work. I appreciate it.

-K 

-- 
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 post to this group, send email to [email protected].
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/f55bf714-187b-41b7-aee7-eed3b684997a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to