Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Extra HTML tags when cutting and pasting within Page Content HTMLField/TinyMCE


Go to End


2 Posts   1347 Views

Avatar
swaiba

Forum Moderator, 1899 Posts

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

Avatar
Nivanka

Community Member, 400 Posts

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