Pasting from a web page

  •  06-13-2007, 5:05 AM

    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.

View Complete Thread