EditorOnPaste + Google Chrome

Last post 07-13-2009, 4:02 AM by rubendevries. 2 replies.
Sort Posts: Previous Next
  •  07-10-2009, 2:22 AM 53883

    EditorOnPaste + Google Chrome

    Hello,
     
    I've been playing around with the different EditorOnPaste options to get a result close enough to what I want and when I was convinced it was working properly my college kept telling me it still wasn't fine.
     
    Now I finaly found the problem; he's using Google Chrome!
     
    I'm using the PasteCleanHTML and when pasting in text (I'm using Lorem Ipsum text from: http://www.lipsum.com/feed/html) IE and FF work like a charm, giving me only the <P> tags and the actual text.
     
    Chrome however pastes in <span> tags with inline styles to it and that way it won't drop the font family from it's source website!!
     
    I think this is just Chrome adding in the span tags with the styles when copying the text, but is there any way to strip it out again?
     
     
    Thanks in advance,
     
    Ruben de Vries
    Hoppinger
  •  07-10-2009, 12:52 PM 53895 in reply to 53883

    Re: EditorOnPaste + Google Chrome

    Ruben,
     
    Please try this example:
     
     
    1. Open http://www.lipsum.com/feed/html using IE and copy the text, then paste the content into editor using Chrome.
     
    2. Open http://www.lipsum.com/feed/html using Chrome and copy the text, then paste the content into editor using Chrome.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  07-13-2009, 4:02 AM 53924 in reply to 53895

    Re: EditorOnPaste + Google Chrome

    in IE6 and IE7 is works fine, it strips out the formatting and pastes it in the editor as normal text.
     
    in Chrome it copies the styles differently it seems,
     
    The text on lipsum.com is formatted with only <p> elements around it, however when I copy a paragraph with Chrome it will add <span> elements around it, this is the <span> tag I get in the editor when I paste:
     
    <span style="font-family: Arial; font-size: 11px; line-height: 14px;">
     
    I think it's a chrome feature to make sure the formatting isn't lost when you copy some text, so it's not really a cuteditor bug but more of an anoying behavory of chrome which could be fixed by cuteditor ;)
     
View as RSS news feed in XML