editor.isCommandEnabled(CommandID)
指定したコマンドが有効かどうかを取得します。
構文
editor.isCommandEnabled(CommandID)
パラメーター
型:string
コマンド名。
戻り値
型:boolean
コマンドが有効なら True、そうでなければ false。
使用例
var editor1 = new RichTextEditor("#div_editor1");
editor1.clearHistory();
console.log("after clear history, can undo : " + editor1.isCommandEnabled("undo"));