Instead of disabling the whole plugin, you could try to modify the 
"exclude" filter configuration ($:/plugins/tobibeer/preview/defaults/exclude 
<http://tobibeer.github.io/tw5-plugins/#%24%3A%2Fplugins%2Ftobibeer%2Fpreview%2Fdefaults%2Fexclude>
 
by adding/removing [all[tiddlers]]) or the classes for which there is no 
preview ($:/plugins/tobibeer/preview/defaults/not 
<http://tobibeer.github.io/tw5-plugins/#%24%3A%2Fplugins%2Ftobibeer%2Fpreview%2Fdefaults%2Fnot>
 
by adding/removing tc-story-river or even tc-body for example).

Le mardi 27 mars 2018 22:00:43 UTC+2, Surya a écrit :
>
> 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!
>
>
>

-- 
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/effda5dc-91a1-4106-a390-4dcb0a90459b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to