Pasting from a web page

Last post 06-13-2007, 10:02 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  06-13-2007, 5:05 AM 30661

    Pasting from a web page

    Having deployed our application using version 6.0 of the cuteditor control (ASP.NET), I have several users complaining that having pasted text from a web page, paragraphs are being stripped and replaced with <br> elements.

    For example, if I paste text the top 2 paragraphs starting from 'Vancouver and Carlsbad' from this web page:

            http://ir.isispharm.com/releasedetail.cfm?ReleaseID=246831

    the html in the CuteEditor editor control is:

    <p>VANCOUVER and CARLSBAD........<br />
    <br />
    Eighty-one patients........</p>

    This is a problem as my users need to convert paragraphs to bullet point lists. In the case above, the absence of <p>'s around each paragraph cause the entire text to have a single bullet point inserted at the beginning.


    In version 5.3 of the editor control, the html pasted into the editor using the 'paste plain text' button looked like:

    <p>VANCOUVER and CARLSBAD........</p>
    <p>Eighty-one patients........</p>


    Which allowed the user to insert a bullet point at the start of each paragraph.

  •  06-13-2007, 10:02 AM 30666 in reply to 30661

    Re: Pasting from a web page

    wh1974,
     
    In version 6.0, by client requests, we added this new feature. When pasting text, we parse the pargraph and replace the pargraph with break tag. If you don't agree with this, please set Editor.EditorOnPaste Property to PasteWord.
     
     

    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

View as RSS news feed in XML