We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7231
    • 4,205 Posts
    The clients use RTE and I don’t. So when I need to edit a page I select none form the editor option and edit away ten save and am done. However, once I save the page it seems that all the editor specific code like mce_href="" that was on the page is broken so all links stop working.

    I tried turning auto-cleanup off but it does not seem to make a difference. The only solution is to un-check the Use RTE option and save the document and then re-open it to edit it, then activate the Use RTE box and then save it. I don’t recall having this problem before. The site is using 0963.
      [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

      Something is happening here, but you don't know what it is.
      Do you, Mr. Jones? - [bob dylan]
      • 20413
      • 2,877 Posts
      You could use the html editor in TinyMCE if you don’t find a solution... just a thought.
      //though that will restrict much of what you can post...
        @hawproductions | http://mrhaw.com/

        Infograph: MODX Advanced Install in 7 steps:
        http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

        Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
        http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • 7231
        • 4,205 Posts
        Quote from: mrhaw at Feb 02, 2009, 07:19 AM

        You could use the html editor in TinyMCE if you don’t find a solution... just a thought.
        //though that will restrict much of what you can post...
        That is an option as well. I don’t like the additional pop-up window but that editor does not break the RTE links.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 4018
          • 1,131 Posts
          The problem you’re having is more by design than a bug with TinyMCE. The presence of mce_href="" in the code usually indicates that TinyMCE attempted to rewrite the code in an effort to make it more standards-based and couldn’t, thus the reason for the mce_href. Turning off auto-cleanup will only make it worse and it’s recommended unless there’s a very specific reason.

          In order to tell you exactly what is going on, I’d need to see an example. Can you post some code from a page that consistently get’s rewritten with mce_href’s in the code? Thx! laugh


            Jeff Whitfield

            "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
            • 7231
            • 4,205 Posts
            Here is an example: if I am not using RTE is reads:
            <b><a href="[~4~]">YOU CAN RACE</a></b>

            If I turn on the RTE but select "none" the code becomes:
            <b><a href="%5B%7E4%7E%5D" mce_href="[~4~]">YOU CAN RACE</a></b>

            If I save it while ’none’ is selected but "Use RTE" is on the links never get parsed back and stay as above so the links don’t work in the front-end.

            Turning off auto-cleanup will only make it worse and it’s recommended unless there’s a very specific reason.
            I am confused is it recommended to turn off auto-cleanup or leave it on?
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don&#39;t know what it is.
              Do you, Mr. Jones? - [bob dylan]
              • 4018
              • 1,131 Posts
              What version of TinyMCE are you using? I tried replicating this but the only thing I’m getting is that the ’B’ tags are being replaced with ’STRONG’ tags on my end. Best guess would be that the xconfig.js file wasn’t updated right and/or contains some bad entries in the tinymce_valid_elements variable. Something is causing the TinyMCE cleanup routine to stumble.
                Jeff Whitfield

                "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                • 10449
                • 956 Posts
                I had that too recently with an older MODx version and it drove me nuts. All I can say is that with the latest stable 0.9.6.3 + the pre-installed tinyMCE 3.2.0.1, together with these settings you see in my screenshot, don’t behave like that. Everything’s nice and peachy. Site encoding is UTF-8, but I don’t think that matters much in this case.

                Maybe it’s worth updating tinyMCE or MODx, if you’re not having the latest versions.
                  • 7231
                  • 4,205 Posts
                  The site uses 3.2.0.1 I will try the setup as you have it and see if it helps. If not I will re-install.
                    [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                    Something is happening here, but you don&#39;t know what it is.
                    Do you, Mr. Jones? - [bob dylan]
                    • 4018
                    • 1,131 Posts
                    I just posted a new version of TinyMCE as well (version 3.2.1.1: http://modxcms.com/TinyMCE-498.html). That might help as well.
                      Jeff Whitfield

                      "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
                      • 18504
                      • 1 Posts
                      I’ve had the same problem with MODx 0.9.6.3 and tinymce3201. Switched Cleanup in the plugin config from disabled to enabled and now it works fine again. However, I’m sure that I disabled cleanup for a good reason... huh