We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I’ve got two problems with TinyMCE installed in a module. You can see them both if you use the guest login and play around with the KoopsMailinglistX module.

    First, I get the extra <p>&nbsp;</p> for every line break. This has been brought up elsewhere, but I haven’t seen a solution.

    Second, both in the editing field itself and in any popups such as insert/edit link produces this js error on saving:
    setVariableModified is not defined
    The save works anyway, it just generates this error.

    I’m not a Javascript person, and ConseilsWeb got it set up for KoopsMailinglist to use the default MODx RTE (great job! Thanks again!), so I haven’t a clue what to do about either of these issues.
      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
      • 4018
      • 1,131 Posts
      Have you tried the latest 2.1.0 version of TinyMCE? Just tested out a few things and I’m not able to duplicate either of these issues. I’ll try testing it in the KoopsMailinglistX module and see what happens in it.
        Jeff Whitfield

        "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
      • Hi Susan. Which browser and which version of Tiny MCE?

        Doh! ... beat to the punch. Good morning Jeff!
          Ryan Thrash, MODX Co-Founder
          Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • FF 2.0.0.3/OS X, and I upgraded to tinyMCE 2.1 and it does the same thing.

          The error is triggered twice every time I hit <return>, and I get the extra p element with a non-breaking space.
            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
            • 4018
            • 1,131 Posts
            Yeah, I played around with it a bit more using the Koops module. Definitely has a few quirks there than need to be addressed. I’ll see if I can whip up a fix before the next release. smiley

            Jeff
              Jeff Whitfield

              "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
              • 1511
              • 144 Posts
              Quote from: sottwell at Apr 11, 2007, 11:11 AM

              I’ve got two problems with TinyMCE installed in a module. You can see them both if you use the guest login and play around with the KoopsMailinglistX module.

              First, I get the extra <p>&nbsp;</p> for every line break. This has been brought up elsewhere, but I haven’t seen a solution.

              I had the same problems until recently, when I upgraded to TinyMCE 2.1.0
              I had that extra paragraph when editing content in the front end, even though in the manager everything was ok.

              But still, when I use TinyMCE in KoopsMailinglistX 1.4, the same thing happens!

              I’ll try to find the reason...
                • 4018
                • 1,131 Posts
                I think the problem is that TinyMCE is getting confused since a nonexistent function (setVariableModified ) is trying to run every time the content changes. So...I’m gonna work on eliminating this by reworking the pages that actually use the setVariableModified function. That should take care of the problem I think. smiley

                Jeff
                  Jeff Whitfield

                  "I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."