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

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

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

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

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

Post 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....
CapereSpiritum
Forum Members
Forum Members
Posts: 223
Joined: Wed Dec 28, 2011 12:11 pm

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

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3484
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

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

Post 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).
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Location: Maidenhead, UK
Contact:

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

Post 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.
Post Reply

Return to “The Lounge”