Hi,
If you want to use another xml file, please open"\richtexteditor\dialogs\setstyles.xml", find section below. You can change the location and file name "staticstyles.xml" directly.
var arr=[editor._config.folder+"config/staticstyles.xml?"+editor._config._urlsuffix];
Also, the example below shows you how to custom the style dropdown list.
- <%@ Page Language="c#" ValidateRequest="false" %>
-
- <%@ Register TagPrefix="RTE" Namespace="RTE" Assembly="RichTextEditor" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>example</title>
- </head>
-
- <script runat="server">
- protected override void OnLoad(EventArgs e)
- {
- Editor1.ContentCssText = ".CustomStyle1{color:red}.CustomStyle2{color:blue}";
- base.OnLoad(e);
- }
- </script>
-
- <body>
- <form id="Form1" method="post" runat="server">
- <RTE:Editor runat="server" ID="Editor1" Height="260px" />
- </form>
- </body>
- </html>
Regards,
Ken