We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36926
    • 701 Posts
    I'm trying to create an xml file, so i'm setting the template as empty and then checking the toggle editor so TinyMCE doesn't mess around with my snippet. But as soon as I save the toggle editor is checked again, TinyMCE appears and messes up my snippet by wrapping it in a <p> tag.

    Is it meant to work like this, tried a 2.2.4 and 2.2.5 and get the same issue on modx cloud and my normal hosting.

    Is it meant to work like this?

    This question has been answered by sottwell. See the first response.

      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Quite honestly, I recall when tinyMCE would remain as toggled in MODX although I can't remember which last version I saw this behavior in. It does always toggle back in 2.2.5 though and I too would like to know if there's a setting somewhere to fix it.

      In the meantime however, you could solve this by making the .xml resource a static resource, in which you can edit either in the manager or an external editor without tinyMCE interfering.

        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
      • discuss.answer
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        The "toggle" option is for that session. The way to permanently switch off the RTE is in the resource's Settings tab using the Rich Text checkbox.
          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
          • 36926
          • 701 Posts
          Thanks guys for you help, both useful tips

          That Rich Text checkbox was what I was looking for. That must of been what i'd used in the past.

          Cheers