Hi erdnase,
Please try the example below, it shows you how to change the font name/size dropdown list in javascript when editor load.
- <%@ 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>
-
- </head>
- <body>
- <form id="Form1" method="post" runat="server">
- <RTE:Editor ID="Editor1" runat="server" />
-
- </form>
- </body>
- </html>
- <script type="text/javascript">
-
- function RichTextEditor_OnCoreLoad(editor) {
- var config = editor._config;
-
- config.fontnamelist = "Arial";
- config.fontsizelist = "8px";
- }
- </script>
Regards,
Ken