We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30867
    • 4 Posts
    Disclaimer: I am new to ManagerManager, I am mediocre at PHP.

    I would like to make plain HTML the default for administrators. I’d like to keep TinyMCE on the site, as other user-types will use it. I’m trying to use ManagerManager to change the defaults and I’m doing something incorrect.

    I installed ManagerManager and I found the default rules in /assets/plugins/managermanager .
    I understand that I can do something like:

    mm_hideFields(’link_attributes’, ’!1’);

    My simple solution didn’t work:
    mm_hideFields(’which_editor’,’TinyMCE’,’1’);

    I also tried:
    mm_default(’which_editor’,’none’, ’1’);

    I’ve looked everywhere for any documentation beyond the definition of variables and have gone through the documentation that came with the module...can someone enlighten me on what I’m missing?

    Thank you in advance! laugh
      • 21257 MODX Staff
      • 730 Posts
      I don’t believe you can do this with existing MM rules.
      It would probably be possible to develop a widget for MM that would accomplish this but it would not be trivial.
      You can, however, control which editor individual users get on the ’User’ tab when you’re editing a manager user.
      You could also probably write a Plugin that would allow control the RTE on a per-role basis. Has anyone seen anything like this in the repository?
        Mike Schell
        Lead Developer, MODX Cloud
        Email: [email protected]
        GitHub: https://github.com/netProphET/
        Twitter: @mkschell
        • 21257 MODX Staff
        • 730 Posts
        OK, don’t listen to me. Well, don’t listen to the 5-minutes-ago me.
        I had another look at the MM documentation, and noticed this:

        For the "mm_default" function:

        is_richtext - should "rich text" be checked? If set to false, the page will automatically also set the "which_editor" field to none, and reload the page so this takes effect. Takes boolean value.

        Maybe this will work for you.
          Mike Schell
          Lead Developer, MODX Cloud
          Email: [email protected]
          GitHub: https://github.com/netProphET/
          Twitter: @mkschell
          • 30867
          • 4 Posts
          I’ll try it. FWIW, I was doing this because of :
          I had been directed to MM by http://modxcms.com/forums/index.php?topic=33911.0, but the OP didn’t reply with his/her solution.
            • 30867
            • 4 Posts
            I can’t get it to work. For now I’ll just manually set user permissions for the editor.
              • 4971
              • 964 Posts
              I have discovered the same as the pre 5 minute netprophet suggestion says.
              You are better activating the RTE editor for everybody in the configuration,
              and then just disabling it for the admin user in the User tab of configuration.
              Less stress to the system and it works perfect...
                Website: www.mercologia.com
                MODX Revo Tutorials:  www.modxperience.com

                MODX Professional Partner
                • 30867
                • 4 Posts
                Quote from: charliez at Mar 09, 2010, 03:44 PM

                You are better activating the RTE editor for everybody in the configuration,
                and then just disabling it for the admin user in the User tab of configuration.
                Less stress to the system and it works perfect...

                Agreed, and that’s what I ended up doing. I’m fairly new to MODx (when do you get to claim you’re not?), so asking the right questions for problems seems to be my main problem...I was looking for a nuclear option instead of the small firearms option. grin