editor.isCommandEnabled(CommandID)
Ermittelt, ob der angegebene Befehl aktiviert ist.
Syntax
editor.isCommandEnabled(CommandID)
Parameter
Typ: string
Befehlsname.
Rückgabewert
Typ: boolean
True, wenn der Befehl verfügbar ist, andernfalls false.
Anwendungsbeispiel
var editor1 = new RichTextEditor("#div_editor1");
editor1.clearHistory();
console.log("after clear history, can undo : " + editor1.isCommandEnabled("undo"));