If you were able to just use the existing tagging mechanism to toggle the “rtl” tag then all you need is the following text in a stylesheet tiddler tagged $:/tags/Stylesheet:
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock .tc-tiddler-frame.tc-tagged-rtl textarea.tc-edit-texteditor { background: red; direction: rtl; } Best wishes Jeremy > On 20 Mar 2020, at 05:12, Ittay Dror <ittay.d...@gmail.com> wrote: > > > > On Thursday, 19 March 2020 19:23:01 UTC+2, Mat wrote: > Is this what you want: A tiddler toolbar button that toggles the > $:/tags/Stylesheet tag on a tiddler. > > > My end goal is to toggle the 'direction: rtl;' style for the tiddler and the > editor while editing that tiddler (but only for such tiddlers). I saw that > for a tiddler this is possible by tagging it with some tag (say 'rtl') and > creating a stylesheet tiddler that styles .tc-tagged-<tiddler> (e.g. > .tc-tagged-rtl). I don't know what is the approach for the editor itself. > > -- > 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 > <mailto:tiddlywiki+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/c33325d4-1e4a-475e-84fe-2ea593d82a83%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/c33325d4-1e4a-475e-84fe-2ea593d82a83%40googlegroups.com?utm_medium=email&utm_source=footer>. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAE4367F-5475-4456-8B36-DD87748B1920%40gmail.com.