We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7222
    • 20 Posts
    Hi, latest TinyMCE here - 4.3.0 rc2

    If I edit my document without TinyMCE and put in, say, an ’ it will enter this as I have written it into the database and displays it as you’d wish in the markup.

    But if I then enable TinyMCE and save the page (without actually editing and changing that character), it puts it back in as a non-encoded character.

    This is causing me problems as I move to one server database from an other and it’s annoying that it’s making the effort to change things that don’t need changing! Is there any way to disable this behaviour, because currently I’m tip-toing round editing everything in Sequel Pro which is not ideal! I’ve tried playing with the settings, but I have had not success at all.

    Thanks,
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      There may be a setting for "raw" somewhere in the plugin which might help. There are so many places where it does things like that it’s often difficult to determine which setting needs to be changed; and in some cases it can’t be changed at all since the developers decided that the behavior is the correct one, at least from their point of view.
        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
        • 7222
        • 20 Posts
        Yeah, it’s set to ’raw’ in tiny.entity_encoding under Settings > tinymce

        Doesn’t seem to have any effect!
          • 7222
          • 20 Posts
          I ’fixed’ this by adding the bit I didn’t want TinyMCE to change in tiny_mce.js

          In tiny_mce_src.js I added:

          "’" : "’"
          to line 1042 (and reproduced this in tiny_mce.js, obviously).

          This seems to tell TinyMCE to leave my encoding alone, but I have to specifically specify every character and it feels like a bit of a bodge, but TinyMCE just ignores my settings so I’m not sure what is the best course of action!