WYSIWYG is adding inline styles

5 posts by 3 authors in: Forums > CMS Builder
Last Post: April 20, 2015   (RSS)

By zip222 - April 13, 2015

I am having an odd issue with the WYSIWYG editor - it's adding inline styles when I select text and try to convert to an unordered or ordered list. 

Specifically, it's adding this...

<li><span style="line-height: 1.5;">My Text</span></li>

If I check the html before I apply the list, these inline styles are not present. It's only "my text", plus a paragraph tag and break tags at the end of each line.

I am using paste as plain text, and I have also tried using the Paste from Word function. Neither of these solves the issue.

I am using Mac OS 10.9.5, Safari 7.1.8. I also tried Chrome with no luck, but the style tag being inserted is slightly different.

Help?

By zip222 - April 14, 2015

Help? Anyone?

By zip222 - April 14, 2015

That worked. Why is that not part of the default wysiwyg.php file?

By Dave - April 20, 2015

Hi Zip222, 

>That worked. Why is that not part of the default wysiwyg.php file?

We'll include it in the next release, so it is now.  It's probably never come up for anyone before.   It looks like the sole purpose of that plugin is to normalize behaviour between browsers so it might be a more recent issue.  See: http://www.tinymce.com/wiki.php/Plugin:lists

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com