Jump to:

23377 Posts in 18296 Topics by 2867 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 926 Views
  • swaiba
    Avatar
    Forum Moderator
    1785 Posts

    Extra HTML tags when cutting and pasting within Page Content HTMLField/TinyMCE Link to this post

    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

  • Nivanka
    Avatar
    Community Member
    395 Posts

    Re: Extra HTML tags when cutting and pasting within Page Content HTMLField/TinyMCE Link to this post

    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

    926 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.