Hello,
I am developing a custom application page where I have requirement to add HtmlEditor in a control that will be dynamically added to the page. It all works fine, except that the bullets & numbering buttons are disabled in the SharePoint ribbon. However, if I add a HtmlEditor using markup that is not dynamically rendered, then the control renders perfectly well.. Any help in this regards is much appreciated.
The code I am using in the user control which is dynamically loaded:
<Publishing:HtmlEditor ID="htmlEditor_Response" runat="server" BorderStyle="Solid" BorderWidth="1px" BorderColor="#2A8DD4" />
htmlEditor.Field = new RichHtmlField { EnableViewState = true, AllowReusableContent = false, MinimumEditHeight = "200px", ID = "htmlField_" + htmlEditor.ID, Html = string.Empty, }; Page.Form.Controls.Add(htmlEditor.Field);
The issue that I am facing: