[Project_owners] Editor content

Michael Buckley michael.buckley at hotmail.com
Sun Sep 10 21:06:31 EDT 2006

I want to use an xul editor in my extension for text input, because a
textbox dose not allows for adding color to section of text for color
coding, like done in the view source window.

But my problem is getting the text out of the editor.  doc.textContent
returns all the text with out the line breaks.  doc.innerHTML returns
all the br tags and all the <> converted to &lt; &gt; and no line
breaks.  So how can this be done?  Thunder Bird appears to be able to do
this when a message is set a plain text so it must be possible.

Thanks very much for any help.

Search for local singles online @ Lavalife 

More information about the Project_owners mailing list