[Project_owners] Editor content
Neil
neil at parkwaycc.co.uk
Sun Sep 10 20:06:50 EDT 2006
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 < > 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.
More information about the Project_owners
mailing list