Actually,
the best idea would be to have a plain old multi-line text box replace the HTML editor window for plain text editing, but still enabling some of the editor features such as Code Snippets to work with the plain text box. Then no conversion of text would have to take place at all.
Gerardicus