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