Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

HtmlEditor bullet points getting disabled

$
0
0

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:


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>