We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27210
    • 158 Posts
    1. How can i enable the TinyMCE editor for selected files?

    2. If i have the editor enabled it changes the html code even if i don’t change anything. For example, I have a file with a content area that calls a chunk as follows: {{individual_gallery}}.

    If i open the file with in "html mode" and then turn the editor on, the editor adds <p> tags around {{individual_gallery}}. This seems wrong to me but worse, puts a blank line in front of the gallery because of the <p> tags. If the html code is more complicated the editor really messes up the code.

    Thank you,
    Steve
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      That’s due to a setting called "forced_root_block", where it will add a block element to anything that doesn’t have one. You can turn this off in the plugin’s configuration. http://modxcms.com/forums/index.php/topic,28908.msg280523.html#msg280523
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 27210
        • 158 Posts
        Thank you Susan! smiley