I have a condition based upon which I require that the AJAX HTML Editor gets disable. This code is not working:
edNote.Enabled=false; //edNote is AJAX editor.
Please suggest any other means to do this.
I have a condition based upon which I require that the AJAX HTML Editor gets disable. This code is not working:
edNote.Enabled=false; //edNote is AJAX editor.
Please suggest any other means to do this.
I found that a custom editor can also be made where we can display editor according to our needs. The code and link are given below:
namespace TestControls
{
public class CustomEditor : Editor
{
protected override void FillTopToolbar()
{
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic());
}
protected override void FillBottomToolbar()
{
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode());
}
}
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.