Hello,
how can i disable the complete component of htmleditor?
Using the normal jQuery methods for disabling the editor showed no effect.
Look at my solution: http://es.infragistics.com/community/forums/p/95063/469817.aspx#469817
That will deactivate all buttons on all toolbars.
hey Adrian,
Let me know if you need additional help on this. Thanks,
Angel
Sorry Adrian, I meant $("#htmlEditor").data("igHtmlEditor")._toolbars, etc.
Thanks,
It doesn't know "_allToolbars" or "_toolbars"
Hi
you can get a reference to the list of all toolbars in the following way
$("#htmlEditor").igHtmlEditor()._toolbars, then you can iterate or disable individual toolbar items one by one, in the following way:
var copyPasteToolbar = this._toolbars.copyPasteToolbar;
copyPasteToolbar.igToolbar('disableItem', 'cut', true);
copyPasteToolbar.igToolbar('disableItem', 'copy', true);
copyPasteToolbar.igToolbar('disableItem', 'paste', true);
The names of all toolbar items along with additional metadata can be retrieved in the following way:
$("#htmlEditor").igHtmlEditor()._allToolbars