Re: Non expected HTML tag closure.

  •  02-07-2014, 8:50 AM

    Re: Non expected HTML tag closure.


    HI marvin,


    I still do not understand which API you used to set content for editor. The Rich TextEditor has "SetText()", "InsertHTML()", "InsertText()" and "PasteHTML()" which can set the content for editor by javascript. Which one you are using?






    Dear Ken,

    I am using the SetHtmlCode() function. However I must confess I fixed it.
    The problem seemed to be the fact that I returned the HTML mime type.
    I've create a structure which has a <p> element inside a custom element inside a <p> element.
    You'd expect that this wouldn't create any problems especially since I added an XML declaration at the top.
    This is where the problem exists. Every browser tries to parse the HTML as they expect, even though custom elements are allowed in XHTML somehow browsers tend to put their <p> elements outside of non-standard HTML tags.
    To make a long story short, I set the mime type to XML, and insert that into the editor via JavaScript.

    With kind regards,
    Marvin Brouwer.

View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems