Hi,
I am trying to get a series of tab RichTextEditors to return formatted text as html markup fragments, and not the fully-qualified HTML doc. We use this same RichTextEdit elsewhere which honors the formatting settings to return fragments (but not in a tab control), but in the context below, it always returns the default full html doc no matter what. Originally this was using a resource dictionary, but I inlined the HTMLDataProvider to try to isolate the problem
<
telerik:RadTabControl
Style
=
"{DynamicResource TabControlNoHeaderBackground}"
ItemsSource
=
"{Binding Disclosures}"
>
<
telerik:RadTabControl.ItemTemplate
>
<
DataTemplate
>
<
TextBlock
Text
=
"{Binding DisclosureTypeName}"
/>
</
DataTemplate
>
</
telerik:RadTabControl.ItemTemplate
>
<
telerik:RadTabControl.ContentTemplate
>
<
DataTemplate
>
<
Grid
>
<
telerik:HtmlDataProvider
x:Name
=
"CustomerHtmlDataProvider"
Html
=
"{Binding Content, Mode=TwoWay}"
RichTextBox
=
"{Binding ElementName=TxtDisclosureContent}"
>
<
telerik:HtmlDataProvider.FormatProvider
>
<
telerik:HtmlFormatProvider
>
<
telerik:HtmlFormatProvider.ExportSettings
>
<
telerik:HtmlExportSettings
DocumentExportLevel
=
"Fragment"
ImageExportMode
=
"None"
ExportFontStylesAsTags
=
"True"
ExportStyleMetadata
=
"False"
>
</
telerik:HtmlExportSettings
>
</
telerik:HtmlFormatProvider.ExportSettings
>
</
telerik:HtmlFormatProvider
>
</
telerik:HtmlDataProvider.FormatProvider
>
</
telerik:HtmlDataProvider
>
<
telerik:RadRichTextBox
x:Name
=
"TxtDisclosureContent"
IsSpellCheckingEnabled
=
"False"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:RadTabControl.ContentTemplate
>
</
telerik:RadTabControl
>