Hello all,
I would like to have a button on my wiki with which I can enable/disable the Preview-Tiddler-Links from
http://tobibeer.github.io/tw5-plugins/#preview.
So that, when deactivated, on the whole wiki there is no more preview
of links. And, when activated, there is my normal setting of previewing
links.
I have a solution with a checkbox:
<$checkbox tiddler="$:/config/Plugins/Disabled/$:/plugins/tobibeer/preview" field="text" checked="yes" unchecked="no" default="no"> Disable Preview?</$checkbox>
That works. But:
1.) I have to save and reload the wiki to have the effect working.
So it is useless for the visitors of my public wiki.
How can I enable/disable it with only 1 click without having to save & reload the wiki?
2.) I would like to have a button with an image in it for that.
This should be only ONE button which reflects the two states.
When the plugin is enabled, the button turns green and shows the image.
When the plugin is disabled, the button shows the image but with a red cross above it (I think, I would make another image for that state).
How can I make that?
Any ideas for that???
Thanks, Surya!