We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    My Tiny MCE editor has just started playing up. With it on, I have entered content, changed font size, colour, etc. But when I save it strips out all formatting and tags. If I type 'Hello' and then turn it to NONE there are no <p> tags enclosing it. The format seems stuck on 'Format' option whereas I usually use 'Paragraph'.

    Has anyone else had this problem, and if so how do I solve as I am worried about changing anything in my pages in case it strips out all the tags.
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 7527
      • 437 Posts
      I have just tested a page currently on Modx. with Tiny off the content reads as follows

      <p style="text-align: center;"><span style="color: #ff6600; text-decoration: underline;"><strong><span style="font-size: 260%;">Rediscoveries</span></strong></span></p>
      <p>A rediscovered species is an animal that has been declared extinct, or has been unseen for many years, only to be (re)discovered years later. Some recent rediscoveries include:</p>

      I then swith into Tiny MCE mode and get this:

      [IMG]http://i1126.photobucket.com/albums/l604/sebastianbawn/Modxcopy.jpg" border="0" />[/img]

      Switch the editor off again and I get this:

      Rediscoveries
      A rediscovered species is an animal that has been declared extinct, or has been unseen for many years, only to be (re)discovered years later. Some recent rediscoveries include:

      And back on my text has now lost all size and colour and looks like this:

      Rediscoveries A rediscovered species is an animal that has been declared extinct, or has been unseen for many years, only to be (re)discovered years later. Some recent rediscoveries include:

      It is as if the editor forgets all tags, spaces, etc. Does anyone know why this would happen? [ed. note: distant_smile last edited this post 13 years, 4 months ago.]
        www.PawsForWildlife.co.uk
        www.Borntobrick.co.uk
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        It depends on what's in the database when the content gets loaded. If you've removed all tinymce formatting then saved, when it's loaded it will get loaded with no formatting. The text itself may have line breaks like /r or /l, but you since the form is in a web page, you'll see HTML formatting, and HTML does not recognize text line breaks.
          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
          • 7527
          • 437 Posts
          The page was currently loaded onto the website and has been modified before. It has only started happening today, and it seems it happens to any page I try to modify. Is there something I can do to stop it?
            www.PawsForWildlife.co.uk
            www.Borntobrick.co.uk
            • 7527
            • 437 Posts
            Do you know how I can correct what you suggested Sottwell?
              www.PawsForWildlife.co.uk
              www.Borntobrick.co.uk
              • 7527
              • 437 Posts
              When I delete everything off and come back into the page. With Tiny mce off I have an html tag in the box. This sounds similar to what Sottwell was saying, how do I correct?
                www.PawsForWildlife.co.uk
                www.Borntobrick.co.uk
                • 7527
                • 437 Posts
                Just an update, having viewed my source code I found this:

                <div id="content">
                <html />
                </div>

                My template code is written as this:

                <div id="content">
                [*content*]
                </div>

                In all my pages the tag starts as <p> for paragraph. The offending <html/> tag seems to be the problem but it seems I cannot remove it? Hopefully this will make sense to someone as I am unable to update any of my website at the moment.
                  www.PawsForWildlife.co.uk
                  www.Borntobrick.co.uk
                  • 7527
                  • 437 Posts
                  One more update. It all works fine in Google Chrome. I am having problems with Internet Explorer 10
                    www.PawsForWildlife.co.uk
                    www.Borntobrick.co.uk
                    • 38290
                    • 712 Posts
                    Sign up for the modmore newsletter if you wish we are releasing a much better premium rich text editor this week that won't modify your tags at all
                      jpdevries