Hi Ittay

> The optimal thing for me would be to have a toolbar button (to toggle the 
> tag, or something else)

Create a tiddler with the following fields:

title: $:/core/ui/EditorToolbar/rtl
tags: $:/tags/EditorToolbar
icon: $:/core/images/right-arrow
caption: RTL
description: Toggle Right To Left
condition: [<targetTiddler>!has[type]] 
[<targetTiddler>type[text/vnd.tiddlywiki]]

And the following text:

<$list filter="[<targetTiddler>tag[rtl]]" variable="ignore" emptyMessage="""
<$action-listops $tiddler=<<targetTiddler>> $tags="+rtl"/>
""">
<$action-listops $tiddler=<<targetTiddler>> $tags="-rtl"/>
</$list>

> And wouldn't the styling you suggested change the text editor to always be 
> RTL? I want it to be RTL only when a tiddler is (tagged as) RTL. 

The selector I’ve used includes .tc-tagged-rtl so that it only applies to 
tiddlers with the tag “rtl”.

Best wishes

Jeremy.

> 
> Thanks,
> Ittay 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/CAP972tE%2BJSiRg84On_Y20hri6nokBkUsOABfSQ2RrxqUZSpjgg%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/CAP972tE%2BJSiRg84On_Y20hri6nokBkUsOABfSQ2RrxqUZSpjgg%40mail.gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/C8986193-12F2-4CB7-AA49-A084A1E17546%40gmail.com.

Reply via email to