Page 1 of 1

Style code gets added to my plain text...!

Posted: Wed Feb 19, 2014 1:45 pm
by CapereSpiritum
Hi Folks

I will often get the following span code added to plain text. Viewd in HTML mode in the WYSIWYG.
<span style="line-height: 1em;">The Text</span>

Everything is styled by CSS. There does not seem to be a pattern, it just seems to happen most of the time.

Also to <li style="line-height: 1em;">List Items</li>

It's really annoying. Anyone know how to stop it?

Re: Style code gets added to my plain text...!

Posted: Wed Feb 19, 2014 6:51 pm
by Dr.CSS
If you see that like just like that in the wysiwyg mode or on front end then it means the < > have been turned into < > aka html entities....

Re: Style code gets added to my plain text...!

Posted: Thu Feb 20, 2014 9:38 am
by CapereSpiritum
Hi Doc

That's not it.

I'll add 'The Text' using the 'Paste as Plain Text' button and then I'll get <span style="line-height: 1em;">The Text</span> around it.

It's the style being added in a <span>

I'm very careful to use the 'Paste as Plain Text' when taking text from a doc or pdf supplied by a client.

Later , I'll have to go into the html and remove all the unwanted cludge that's been added.

Re: Style code gets added to my plain text...!

Posted: Thu Feb 20, 2014 10:00 am
by velden
don't know what causes this but work around could be to first paste in a plain text editor (e.g. notepad on Windows) and then copy it from there and paste in CMSMS (no need to use Paste as Plain Text button then).

Re: Style code gets added to my plain text...!

Posted: Thu Feb 20, 2014 12:53 pm
by paulbaker
velden wrote:first paste in a plain text editor (e.g. notepad on Windows) and then copy it from there and paste in CMSMS
That's exactly what I do - then you know for sure what is being pasted.