Hi Bent Bracke,
Please try the example below, does it work for you?
- <%@ 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)
- {
- RTE.Editor ed = new RTE.Editor();
- ed.ID = "editor1";
- ed.Toolbar = "custom";
- placeholder.Controls.Add(ed);
- base.OnLoad(e);
- }
- </script>
-
- <body>
- <form id="Form1" method="post" runat="server">
- <asp:Panel ID="placeholder" runat="server"></asp:Panel>
- </form>
- </body>
- </html>
Regards,
Ken