21290 Posts in 5733 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » Extra HTML tags when cutting and pasting within Page Content HTMLField/TinyMCE
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 647 Views |
-
Extra HTML tags when cutting and pasting within Page Content HTMLField/TinyMCE

8 June 2011 at 12:40am
i copied this in the cms (ctrl + c)
<h3>New Business Manager</h3>
<p>An ideal candidate would be responsible for launching products into new markets and attaining new customers.</p>
<p>Apply now..</p>and i pasted into the same page, directly below (ctrl + v) and the html it copied was..
<h3 style="font-size: 1.17em;">New Business Manager</h3>
<p>An ideal candidate would be responsible for launching products into new markets and attaining new customers.</p>
<p><span style="vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; outline-width: 0px; outline-style: initial; outline-color: initial; padding: 0px; margin: 0px;">Apply now..</span></p>why all the extra html l tags?
note - all html code shown here, but when copy and paste it was with just the "styled text" showing in the Content area, silverstripe version 2.4.5
-
Re: Extra HTML tags when cutting and pasting within Page Content HTMLField/TinyMCE

8 June 2011 at 11:04pm
hi,
I think you have to try out the paste as plain text for this. This is not a tinyMCE issue as far as I know.
if you are copying from MS Word this will be more messy
| 647 Views | ||
|
Page:
1
|
Go to Top |


