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