www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] TinyMCE inserting code that isn't supposed to be there

  1. #1
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582

    resolved [RESOLVED] TinyMCE inserting code that isn't supposed to be there

    Hello, everyone.

    Has anyone worked with the TinyMCE WYSIWYG Editor plugin?

    I've got a weird situation. It was working fine, up until yesterday. Then it suddenly starts URLEncoding some CSS code, making it visible within the content.

    Here is what it's inserting:
    Code:
    &lt;:css3-container style="z-index: -1; left: 11px; position: absolute; top: 11px;" data-mce-style="z-index: -1; left: 11px; position: absolute; top: 11px;"&gt;&lt;:background style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;&lt;:group2&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 297px; position: absolute; top: 0px; height: 29px;" coordsize="1000,1000"><css3vml:fill></css3vml:fill><css3vml:fill></css3vml:fill></css3vml:shape>&lt;:border style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 297px; position: absolute; top: 0px; height: 29px;" coordsize="1000,1000"><css3vml:stroke></css3vml:stroke><css3vml:stroke></css3vml:stroke></css3vml:shape>&lt;:css3-container style="z-index: -1; left: 310px; position: absolute; top: 11px;" data-mce-style="z-index: -1; left: 310px; position: absolute; top: 11px;"&gt;&lt;:background style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;&lt;:group2&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 343px; position: absolute; top: 0px; height: 29px;" coordsize="1000,1000"><css3vml:fill></css3vml:fill><css3vml:fill></css3vml:fill></css3vml:shape>&lt;:border style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 343px; position: absolute; top: 0px; height: 29px;" coordsize="1000,1000"><css3vml:stroke></css3vml:stroke><css3vml:stroke></css3vml:stroke></css3vml:shape>&lt;:css3-container style="z-index: -1; left: 11px; position: absolute; top: 42px;" data-mce-style="z-index: -1; left: 11px; position: absolute; top: 42px;"&gt;&lt;:background style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;&lt;:group1&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 297px; position: absolute; top: 0px; height: 68px;" coordsize="1000,1000"><css3vml:fill></css3vml:fill></css3vml:shape>&lt;:border style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 297px; position: absolute; top: 0px; height: 68px;" coordsize="1000,1000"><css3vml:stroke></css3vml:stroke><css3vml:stroke></css3vml:stroke></css3vml:shape>&lt;:css3-container style="z-index: -1; left: 310px; position: absolute; top: 42px;" data-mce-style="z-index: -1; left: 310px; position: absolute; top: 42px;"&gt;&lt;:background style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;&lt;:group1&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 343px; position: absolute; top: 0px; height: 68px;" coordsize="1000,1000"><css3vml:fill></css3vml:fill></css3vml:shape>&lt;:border style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 343px; position: absolute; top: 0px; height: 68px;" coordsize="1000,1000"><css3vml:stroke></css3vml:stroke><css3vml:stroke></css3vml:stroke></css3vml:shape>&lt;:css3-container style="z-index: -1; left: 11px; position: absolute; top: 112px;" data-mce-style="z-index: -1; left: 11px; position: absolute; top: 112px;"&gt;&lt;:background style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;&lt;:group1&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 297px; position: absolute; top: 0px; height: 40px;" coordsize="1000,1000"><css3vml:fill></css3vml:fill></css3vml:shape>&lt;:border style="left: 0px; position: absolute; top: 0px;" data-mce-style="left: 0px; position: absolute; top: 0px;"&gt;<css3vml:shape style="left: 0px; behavior: url('#default#VML'); width: 297px; position: absolute; top: 0px; height: 40px;" coordsize="1000,1000"> ... SNIP... (it goes on and on and on..
    Every time you update content, the above (and more) is pre-pended to the content. If you remove it, it's replaced; if you don't remove it, it adds another to the one that's already there, increasing size every time.

    Any idea what could be causing this??

  2. #2
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    Nevermind.. it's been fixed.

  3. #3
    Join Date
    May 2011
    Posts
    1
    Hi !

    I have the same problem but with JCE editor in Joomla.
    How do you solved the problem ?

    Thx

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles