Hello,
I'm using the Telerik Web Editor, downloading the HTML and loading it into the RichTextBox. What do I need to do to make the RichTextBox look like the web editor?
Specifically, the bulleted lists do not match. At times, users will paste lists from Word into the web editor, and it looks great. If I get the HTML from the editor and reload it back into the editor, it looks the same, but if I load the HTML into the RichTextBox on the desktop, the bulleted list is not right. Here's my WPF code. Loading the following HTML into the web editor looks good, but loading into the RichTextBox on the desktop does not look right.
Thanks,
Scott
HtmlFormatProvider provider = new HtmlFormatProvider();
string s = "<span style=\"font-family: Calibri;\">\r\n<ul style=\"list-style-type: square;\">\r\n <li><span style=\"font-family: Wingdings;\">µ</span><span style=\"font-family: Calibri;\">You</span>\r\n <ul style=\"list-style-type: circle;\">\r\n <li><span style=\"font-family: Calibri;\">Are</span>\r\n <ul style=\"list-style-type: square;\">\r\n <li><span style=\"font-family: Calibri;\">Here</span>\r\n <ul style=\"list-style-type: square;\">\r\n <li><span style=\"font-family: Calibri;\">Yes</span></li>\r\n </ul>\r\n </li>\r\n </ul>\r\n </li>\r\n </ul>\r\n </li>\r\n</ul>\r\n</span>";
radRichTextBox.Document = provider.Import(s);
I'm using the Telerik Web Editor, downloading the HTML and loading it into the RichTextBox. What do I need to do to make the RichTextBox look like the web editor?
Specifically, the bulleted lists do not match. At times, users will paste lists from Word into the web editor, and it looks great. If I get the HTML from the editor and reload it back into the editor, it looks the same, but if I load the HTML into the RichTextBox on the desktop, the bulleted list is not right. Here's my WPF code. Loading the following HTML into the web editor looks good, but loading into the RichTextBox on the desktop does not look right.
Thanks,
Scott
HtmlFormatProvider provider = new HtmlFormatProvider();
string s = "<span style=\"font-family: Calibri;\">\r\n<ul style=\"list-style-type: square;\">\r\n <li><span style=\"font-family: Wingdings;\">µ</span><span style=\"font-family: Calibri;\">You</span>\r\n <ul style=\"list-style-type: circle;\">\r\n <li><span style=\"font-family: Calibri;\">Are</span>\r\n <ul style=\"list-style-type: square;\">\r\n <li><span style=\"font-family: Calibri;\">Here</span>\r\n <ul style=\"list-style-type: square;\">\r\n <li><span style=\"font-family: Calibri;\">Yes</span></li>\r\n </ul>\r\n </li>\r\n </ul>\r\n </li>\r\n </ul>\r\n </li>\r\n</ul>\r\n</span>";
radRichTextBox.Document = provider.Import(s);