0

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.

1
Contributor
1
Reply
2
Views
5 Years
Discussion Span
Last Post by coder389
0

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:

Custom Editor

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());
    }
}
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.