← Toute la documentation

editor.isCommandEnabled(CommandID)

Indique si la commande indiquée est activée.

Syntaxe

editor.isCommandEnabled(CommandID)

Paramètre

Type : string

Nom de la commande.

Valeur renvoyée

Type : boolean

True si la commande est activée, false sinon.

Exemple d’utilisation

var editor1 = new RichTextEditor("#div_editor1");      
editor1.clearHistory();      
console.log("after clear history, can undo : " + editor1.isCommandEnabled("undo"));