This question is locked. New answers and comments are not allowed.
I'm using the RadRichTextBox to allow users to enter text with spell checking, bold and italics but they can't be allowed to change the font. I've managed to change the context menu to remove font related items, however when I export I found it includes font sizes and families I didn't specify.
I need to do this becuase the text edited will be combined with other edited text fields and shown in a report that has strict styles.
Is it possible to use the HtmlFormatProvider to export the content without specifying the fonts?
Here is what I've tried so far:
string buffer;
HtmlExportSettings exportSettings=new HtmlExportSettings();
exportSettings.DocumentExportLevel= DocumentExportLevel.Fragment;
exportSettings.StylesExportMode = StylesExportMode.Classes;
exportSettings.ExportFontStylesAsTags = true;
exportSettings.StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles;
HtmlFormatProvider formatProvider=new HtmlFormatProvider();
formatProvider.ExportSettings=exportSettings;
buffer = formatProvider.Export(editor.Document);
Thanks,
Anthony