Is this what you want: A tiddler toolbar button that toggles the $:/tags/Stylesheet tag on a tiddler.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c33325d4-1e4a-475e-84fe-2ea593d82a83%40googlegroups.com.
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 {
The optimal thing for me would be to have a toolbar button (to toggle the tag, or something else)
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.
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAP972tE%2BJSiRg84On_Y20hri6nokBkUsOABfSQ2RrxqUZSpjgg%40mail.gmail.com.
.tc-tiddler-frame.tc-tagged-rtl .tc-tiddler-body{
direction: rtl;
}
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/rtltags: $:/tags/EditorToolbaricon: $:/core/images/right-arrowcaption: RTLdescription: Toggle Right To Leftcondition: [<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 wishesJeremy.
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 tiddl...@googlegroups.com.
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/rtltags: $:/tags/EditorToolbaricon: $:/core/images/right-arrowcaption: RTLdescription: Toggle Right To Leftcondition: [<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 wishesJeremy.
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 tiddl...@googlegroups.com.
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”.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1681b6da-4c47-4f39-b1d4-c5c3099b8391%40googlegroups.com.
Hi MohammadPerhaps we should consider adding a mechanism along these lines to the core to allow tiddlers to be selectively written in RTL. It would need some more work; for example, a means of respecting the RTL setting of transcluded text might be useful.
Best wishes
Jeremy
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1681b6da-4c47-4f39-b1d4-c5c3099b8391%40googlegroups.com.
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/rtltags: $:/tags/EditorToolbaricon: $:/core/images/right-arrowcaption: RTLdescription: Toggle Right To Leftcondition: [<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 wishesJeremy.
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 tiddl...@googlegroups.com.
Based on Jeremy instruction, a sample Tiddlywiki with RTL button and sample Persian tiddlers is available here:
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f05554ca-415b-41d6-a673-1a334ee0f92f%40googlegroups.com.
background: red;I should have added that the RTL code I gave won't work with the CodeMirror editor, you'll need to be using the plain text editor.
Best wishes
On 22 Mar 2020, at 08:19, Mohammad <mohamma...@gmail.com> wrote:
--
On Sunday, March 22, 2020 at 12:02:33 PM UTC+4:30, Ittay Dror wrote:On Saturday, 21 March 2020 20:57:33 UTC+2, Mohammad wrote:Based on Jeremy instruction, a sample Tiddlywiki with RTL button and sample Persian tiddlers is available here:Does the styling of the editor text area work for you? Because I can't see there is a tc-tagged-rtl on the tc-editor-frame or anything inside it (there is on the tiddler when not edited)If you mean the background:red, NO, it does not work for me!But if you look at the demo page other settings work. Jeremy may have a better explanation.
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 tiddl...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/pCbeguJHusQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7F214B01-13C8-49AA-AF9B-1E5BA6A30D07%40gmail.com.
Hi Jeremy,That is true, but even with plain text editorbackground: red;
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6c9f11a1-9b65-4512-b037-799ce3c4234e%40googlegroups.com.
Hi Mohammad
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6c9f11a1-9b65-4512-b037-799ce3c4234e%40googlegroups.com.