[Project_owners] Editor content
matthew at mjwilson.demon.co.uk
Sun Sep 10 15:45:16 EDT 2006
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?
More information about the Project_owners