We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    I can’t remove the Styles dropdown because I must allow a *few* custom styles etc. in the CMS.
    But I don’t want justifyleft and justifyright to confuse people.
    Which tinyMCE file do I edit to remove these from the dropdown list??
    I’m using Evo 1.0.3 and a custom toolbar etc.
    Thank you, Tom
      • 10699
      • 15 Posts
      Hi Tom

      I believe that the ’justifyleft’ and ’justifyright’ styles are pulled from this file:
      /assets/plugins/tinymce/style/content.css


      This CSS file is loaded automatically when tinyMCE is displayed.
      I think Tiny then parses the css file and extracts styles from it(?)

      I found that once I added some style_formats via the plugin configuration (custom parameters), the ’justifyleft’ and ’justifyright’ styles disappeared from the styles menu (see http://modxcms.com/forums/index.php/topic,47894.0.html for info about style_formats)

      Or, you could edit the content.css file and remove them completely.
      But bear in mind, the ’justifyleft’ and ’justifyright’ classes are applied to elements when you right-click them and select "alignment > left" or "alignment > right".

      Gerard