Michael Buckley wrote:
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 < > 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.
What if you use XMLSerializer on the document?
Matthew
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners