Completed
Last Updated: 28 Nov 2014 06:06 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 11 Sep 2013 03:57
Category:
Type: Bug Report
0
FIX. HtmlFormatProvider for the RadRichTextBox consider the style tag no matter that its content is commented
To reproduce: 
- add a RadRichTextBox and use the following code

            RadDocument document = null;
            HtmlFormatProvider  provider = new HtmlFormatProvider ();
            OpenFileDialog openDialog = new OpenFileDialog();
            openDialog.Filter = "Documents|*.html";
            openDialog.Multiselect = false;
            DialogResult dialogResult = openDialog.ShowDialog();
            if (dialogResult == System.Windows.Forms.DialogResult.OK)
            {
                using (FileStream stream = new FileStream(openDialog.FileName, FileMode.Open))
                {
                    document = provider.Import(stream);
                }
            }
            this.radRichTextBox1.Document = document;

Note: in the html file use the following way of commenting the style tag:

<style>
<!--
some style content
-->
</style>

Workaround: use the following way of commenting the content:
<!--<style>
some style content
</style>-->


Resolution: 
This issue is addressed in the new version of the control - RadRichTextEditor. Please use the new control instead the RadRichTextBox. 
0 comments