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?
Style code gets added to my plain text...!
-
- Forum Members
- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: Style code gets added to my plain text...!
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....
-
- Forum Members
- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: Style code gets added to my plain text...!
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.
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...!
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).
- paulbaker
- 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...!
That's exactly what I do - then you know for sure what is being pasted.velden wrote:first paste in a plain text editor (e.g. notepad on Windows) and then copy it from there and paste in CMSMS