Michael Buckley wrote:

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.

TB probably uses its own serializer but I think you'll find that editor.outputToString can do what you want. The flags are defined on nsIDocumentEncoder on the trunk but it will work with earlier versions if you substitute the literal values.
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to