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 Daryl - April 14, 2015

Hi zip222,

Can you try to add "lists" to the "plugins" of /cmsAdmin/lib/wysiwyg_custom.php on line 19 and 69?

They should now look like this:

// line 19: 
'plugins'   => 'inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker,lists',

//line 69: 
plugins: "inlinepopups,contextmenu,table,fullscreen,paste,media,spellchecker,lists",

If you don't have a wysiwyg_custom.php, just copy the wysiwyg.php and rename it to wysiwyg_custom.php.

Please let me know if that works for you.

Cheers!

Daryl Maximo
PHP Programmer - interactivetools.com

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