Hello, I am using contenteditable attribute for a purpose of my own WYSIWYG editor. Most of the problems I solved myself, however one I can't figure out.
Contenteditable is acting little weird, because my editor generates XHTML code and as soon as I insert this code in contenteditable element, it modifies it to non-XHTML code, e.g.:
<h1>headline</h1><br />some text
modifies to:
<H1>headline</H1><BR>some text
There are more changes made by browser (I am using Google Chrome 7), but I think this example is good enough.
Is there a way how to change behaviour of contenteditable in Chrome, either not to touch the inserted code or to turn on "XHTML mode" ?