We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33968
    • 863 Posts
    I've built a CMP that requires limited text formatting enabled - no more than Bold, Italic, Link and List buttons.

    The reason is that the output is basic text that is styled up by css, I do not want the user to insert images or change font sizes, etc - and also the textarea is reasonably small so I don't want it crowded with 20 unused buttons.

    I can remove them in system settings but then they are unavailable in modx resource editing forms, and also other areas requiring more complex formatting.

    Any way to deliver different button settings depending on the current manager action?



    [ed. note: okyanet last edited this post 12 years, 6 months ago.]
      • 33968
      • 863 Posts
      This isn't working but am I on the right track?
      $properties = array(
          'buttons1' => 'bold, ... etc',
      );
      $modx->invokeEvent('OnRichTextEditorInit',array(
              'properties' => $properties,
      ));
      

      Digging into the core code now wink