This question is locked. New answers and comments are not allowed.
Hi
I am using the I am using the RadRichTextBox as a html editor and using the following to format the html
I recently upgraded the rad controls and now the editor is adding a <style> tag to the beginning of the html like this:
It is very annoying because it is mucking up the p tags in the rest of the webpage (as the html editor is just used for content snippets)
Is there a way of getting rid of this style tag?
Many Thanks
Tracey
I am using the I am using the RadRichTextBox as a html editor and using the following to format the html
// html export settings
HtmlFormatProvider htmlFormatProvider = new HtmlFormatProvider();
HtmlExportSettings settings = new HtmlExportSettings { ImageExportMode = ImageExportMode.ImageExportingEvent, DocumentExportLevel = DocumentExportLevel.Fragment, StylesExportMode = StylesExportMode.Inline };
settings.ImageExporting += (s, e) =>
{
e.Src = e.Image.UriSource.ToString();
e.Alt = "image";
};
htmlFormatProvider.ExportSettings = settings;
HtmlExport.FormatProvider = htmlFormatProvider;
I recently upgraded the rad controls and now the editor is adding a <style> tag to the beginning of the html like this:
<
style
type
=
"text/css"
>
p { text-indent: 0pt;padding: 0px 0px 0px 0px;margin-top: 0px;margin-right: 0px;margin-bottom: 12px;margin-left: 0px;text-align: left;font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
.defaultDocumentStyle { telerik-style-type: default;telerik-style-name: defaultDocumentStyle;font-family: 'Arial';font-style: Normal;font-weight: normal;font-size: 12px;margin-bottom: 12px; }
</
style
>
It is very annoying because it is mucking up the p tags in the rest of the webpage (as the html editor is just used for content snippets)
Is there a way of getting rid of this style tag?
Many Thanks
Tracey