We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20289
    • 958 Posts
    Quote from: Bravado at Apr 01, 2008, 11:25 AM

    Question is: What’s is it that the "Manager Text Direction" MODx config option and TinyMCE theme_advanced_toolbar_align option (http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme_advanced_toolbar_align) can’t do that requires a significant amount of hacking to fix?

    I was not aware of "theme_advanced_toolbar_align" theme option at first but seems very obvious that "align" attribute is not "direction" attribute!, I went through moixicode wiki and found this for theme direction;
    Option: directionality

    This option specifies the default writing direction, some languages (Like Hebrew, Arabic, Urdu...) write from right to left instead of left to right. The default value of this option is "ltr" but if you want to use from right to left mode specify "rtl" instead.

    Example of usage of the directionality option:

    tinyMCE.init({
    ...
    directionality : "rtl"
    });

    It was there in the assets/plugins/tinymce212/jscripts/tiny_mce/langs/fa.js file (check the history here) But somehow that had no effect in RTL direction!
      [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
      [td][Wiki] [Persian support forum]
      [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
      [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
      • 4018
      • 1,131 Posts
      Actually, it does work. If you install the latest version of the TinyMCE plugin (3.0.3) and go into the plugin configuration, you’ll see an option called Custom Parameters. This allows you to add additional parameters that aren’t currently being utilized by an instance of TinyMCE. Add the following and save the config:

      directionality: "rtl",
      theme_advanced_toolbar_align : "right"
      


      The theme_advanced_toolbar_align parameter will only work for the themes that use the Advanced theme settings. Now, this doesn’t change the order of the buttons or the direction of the content within the popups; that would indeed likely require some hacking. I think most users won’t find this to be troubling.

      There is some references in the wiki about a custom layout for the advanced theme. I’m sure doing that with some CSS might be easier than hacking it directly. I’d consult with Moxiecode on that though. The thing I’d be most concerned with is the ability to easily update the plugin. If Moxiecode continues to update TinyMCE as frequently as they do then updates will be a pain if you hack the core files of TinyMCE directly. It’s better to do it indirectly using the API that Moxiecode provides. smiley
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
        • 20289
        • 958 Posts
        Quote from: Bravado at Apr 01, 2008, 06:08 PM

        There is some references in the wiki about a custom layout for the advanced theme. I’m sure doing that with some CSS might be easier than hacking it directly. I’d consult with Moxiecode on that though. The thing I’d be most concerned with is the ability to easily update the plugin. If Moxiecode continues to update TinyMCE as frequently as they do then updates will be a pain if you hack the core files of TinyMCE directly. It’s better to do it indirectly using the API that Moxiecode provides. smiley

        Good idea!, As long as MODx future release policy is about being cleaned from 3rd party add-ons, Add-ons API’s is a way to go for releases stability, So how/when we go for an advance TinyMCE theme that is 100% RTL supportive?, Feel free to PM me for hacks that might be adopted by Moxiecode so the work won’t be demode by TinyMCE’s further releases.
          [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
          [td][Wiki] [Persian support forum]
          [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
          [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
          • 4018
          • 1,131 Posts
          No prob, man! I’ll do a little bit more research into it. I’m working on getting out the 2.0.5 release right now so if there’s more I can do to better update it for RTL then I will. smiley
            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 20289
            • 958 Posts
            Great, I hope 2.0.5 is 100% RTL compatible so i won’t be tickled to do hacks anymore. Thanks!
              [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
              [td][Wiki] [Persian support forum]
              [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
              [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
              • 20289
              • 958 Posts
              Hey Jeff, After a long time i used to work on something that makes updates easy for tinyMCE and making it RTL-friendly!, have to get it back here soon.
                [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
                [td][Wiki] [Persian support forum]
                [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
                [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]
                • 30497
                • 245 Posts
                Quote from: MotSmart at Mar 08, 2009, 09:49 AM

                Hey Jeff, After a long time i used to work on something that makes updates easy for tinyMCE and making it RTL-friendly!, have to get it back here soon.

                Hi MotSmart, I know I talked about this with you some time ago, but what is it exactly that needs hacking for rtl functionality? I haven’t noticed anything problematic just using the standard tiny mce for hebrew (of course, rtl is handled with my css).
                  • 33992 ☆ A M B ☆
                  • 455 Posts
                  Quote from: MotSmart at Mar 31, 2008, 07:17 PM

                  I would like to announce that RTL-TinyMCE is done, you can get it here, please note that you need to switch your MODx manager interface to RTL and use the MODxRTL manager theme to get the best performance.
                  Grrrrrrrrreat!
                  Thank you very very much friend smiley
                    God loves me. 【ツ】


                    MODX.ir (Persian Support)

                    Boplo.ir/modx/ (Persian)
                    • 20289
                    • 958 Posts
                    @ towerofbabel
                    Its about RTL-perfection!, I know that we don’t die without a complete RTL-functionality on web but i beleive in RTL standards!

                    @ AHHP
                    New release has to come my brother, The quoted msg is back to a couple of months.
                      [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
                      [td][Wiki] [Persian support forum]
                      [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
                      [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]