Hello,
I`m using RTB control to export to html. I want to export Headings with font-size, but Normal style without it. Currently I get in export Normal style as:
<
p
><
span
style
=
"font-size: 16px;"
>test</
span
></
p
>
I want to export Normal style without span
<
p
>test</
p
>
I tried like this - but unsuccesfully:
Editor.Document.StyleRepository.GetValueOrNull(RadDocumentDefaultStyles.NormalStyleName).SpanProperties.ClearProperties();
I use code to export. but can`t ignore font-size (because it is needed for other Headings)
HtmlExportSettings
set
=
new
HtmlExportSettings
{
DocumentExportLevel = DocumentExportLevel.Fragment,
ExportBoldAsStrong =
true
,
ExportEmptyDocumentAsEmptyString =
true
,
ExportFontStylesAsTags =
true
,
ExportHeadingsAsTags =
true
,
ExportItalicAsEm =
true
,
ExportStyleMetadata =
false
,
SpanExportMode = SpanExportMode.DefaultBehavior,
StyleRepositoryExportMode = StyleRepositoryExportMode.DontExportStyles,
StylesExportMode = StylesExportMode.Inline
};
set
.PropertiesToIgnore[
"span"
].AddRange(
new
[] {
"font-family"
,
"dir"
});