I have a problem with the RadRichTextBox, when the data of the control shouldn't be modified we put the control in ReadOnly, that way they can still copy the content of it.
But when you copy the data from a control in ReadOnly, it doesnt keep the formating... The formatting of the tables are the worst problem, doesn't keep the fact that it is table, for him it's just text :(
We use the Telerik control in a custom control that is presented like this :
Maybe it's a issue with the HTML Exrport settings we use, if that's the case, tell me which settings we should use.
Thank you in advance.
But when you copy the data from a control in ReadOnly, it doesnt keep the formating... The formatting of the tables are the worst problem, doesn't keep the fact that it is table, for him it's just text :(
We use the Telerik control in a custom control that is presented like this :
<
telerik:HtmlDataProvider
x:Name
=
"htmlDataProvider"
RichTextBox
=
"{Binding ElementName=richTextBox}"
Html
=
"{Binding Path=HtmlValue, ElementName=thisUserControl, Mode=TwoWay}"
>
<
telerik:HtmlDataProvider.FormatProvider
>
<
telerik:HtmlFormatProvider
>
<
telerik:HtmlFormatProvider.ExportSettings
>
<
telerik:HtmlExportSettings
DocumentExportLevel
=
"Fragment"
ExportStyleMetadata
=
"False"
StyleRepositoryExportMode
=
"DontExportStyles"
StylesExportMode
=
"Inline"
ExportFontStylesAsTags
=
"True"
/>
</
telerik:HtmlFormatProvider.ExportSettings
>
</
telerik:HtmlFormatProvider
>
</
telerik:HtmlDataProvider.FormatProvider
>
</
telerik:HtmlDataProvider
>
<
telerik:RadRichTextBox
x:Name
=
"richTextBox"
DocumentInheritsDefaultStyleSettings
=
"True"
IsReadOnly
=
"{Binding Path=IsReadOnly, ElementName=thisUserControl, Mode=OneWay}"
BorderBrush
=
"Transparent"
Background
=
"Transparent"
AcceptsTab
=
"False"
/>
Maybe it's a issue with the HTML Exrport settings we use, if that's the case, tell me which settings we should use.
Thank you in advance.