PlainText Property Throws Error

  •  06-14-2007, 3:36 PM

    PlainText Property Throws Error

    We are having a problem with the CuteEditor.Editor.PlainText property throwing the following error:

            Unable to cast object of type 'System.Xml.XmlDocument' to type 'System.Xml.XmlElement'.

    This happens when there is a bullet list without the <ul> tags.
    While it is preferred to have the <ul> tags around the <li> tags, they will not always be there. We are dealing with forwarding emails that are formatted by users out of our control, so we can't force any HTML coding style on them.

    The following snippet of HTML will break the PlainText property.

    <li>List Item 1</li>
    <li>List Item 2</li>



    Adam, is this a known issue? Is there a way around this? Thanks.



View Complete Thread