We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34108
    • 66 Posts
    Hi smiley I’m wondering if this is even possible, and if so how I would go about doing it. Any help would be really appreciated!

    I’d like to be able to change the height of the TinyMCE editor for the client, and make this specific for certain pages such as the homepage, e.g.

    // Homepage rules
    $list_tpl = ’5’;
    mm_hideFields(’content,show_in_menu,introtext’, ’’, $list_tpl);
    something here to make the TinyMCE editor shorter for this template only

    Thanks
    Harmony
      • 21056
      • 327 Posts

      Unfortunately this isn’t possible at the moment, but if it’s a request you’d like to be considered please file it on Jira. My personal feeling is that since TinyMCE is a plugin anyway, it should be added as a setting for that, rather than in MgrMgr (which is more about modifying the core rather than other plugins).
        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 34108
        • 66 Posts
        Thanks for your reply ncrossland smiley It’s a shame it can’t be done (yet) but at least I know now so I can stop researching it.

        Thanks again
        Harmony
          • 21056
          • 327 Posts
          I’ve just checked and it is already built into the TinyMCE plugin (latest version, not sure about previous ones). Go to

          Elements -> Manage Elements -> Plugins -> TinyMCE -> Configuration tab

          at the bottom are fields for width and height. Of course this is global, rather than for specific pages...
            Author: ManagerManager plugin - customise your ModX manager interface

            Rckt - web development, Sheffield, UK
            • 34108
            • 66 Posts
            Thanks again ncrossland, you’re a champ!
              • 13585
              • 7 Posts
              This is not the solution, but if you have time to figure it out.. this might give you something to start with..

              I was thinking something like this (in manager rules):

              if($content['id'] == 42){
              echo <<<END
              
              <script type="text/javascript">
              
              d = document.getElementById('ta');
              d.style.height="1000px";
              alert(d.style.height); //this line is just for debug
              
              </script>
              
              END;
              
              }
              



              Bithacky smiley
                • 47562
                • 113 Posts
                I know, this thread is old, but I'm looking to do the exact same thing (change the height of the TinyMCE) in Revo. Can anyone shed some light on how I go about doing this?
                  • 51347
                  • 82 Posts
                  I'm looking for this config too. I use the Plugin "TinyMCE Rich Text Editor 1.2.0" for Revo 2.6.0.

                  Somebody any idea?
                    • 53970
                    • 1 Posts
                    Quote from: pauhana at Jun 03, 2014, 02:05 PM
                    I know, this thread is old, but I'm looking to do the exact same thing (change the height of the TinyMCE) in Revo. Can anyone shed some light on how I go about doing this?
                    Quote from: joe-petts at Nov 21, 2017, 10:41 AM
                    I'm looking for this config too. I use the Plugin "TinyMCE Rich Text Editor 1.2.0" for Revo 2.6.0.
                    Somebody any idea?

                    Hi everybody!
                    I know this thread is old, but today i was have the same problem and i find a solution for MODx Revo. I'm not sure it is good enough, but it's worked. If you have a TV with an input type "HTML Area (richtext)" and you use the Tinymcerte editor for it, then you need to find the file:
                    assets/components/tinymcerte/js/vendor/tinymce/tinymce.min.js

                    Find this part of the string at line 12430:
                    .... r.offsetHeight, a = n.min_height || 100 ......

                    Change 100 to any height you wish and enjoy!

                    PS
                    The value is in "px" [ed. note: colorwebdesigner last edited this post 6 years, 8 months ago.]