We're talking about "e-mail format" HTML export, basically; styles inline, only straight body content etc.
It works pretty awesome nowadays.
I used a HtmlDataProvider bound to my string property - which is to be the e-mail content.
If you strictly want text, just use an TxtFormatProvider instead.
That's of course bound to my RichTextBox.
Note: Follow the tutorial about
RadRichTextBoxRibbonUI if you want a toolbar interface to work with rather than starting from scratch.
What you need to do is set the
FormatProvider property of this HtmlDataProvider, so it exports in the way you expect.
I initially did it in code, but should be able to bind it too for MVVM compatibility:
Further more, I've extended the RadDocument to allow export as text and html, so you can just pick up an RichTextBoxEditor's native document.
Enjoy