diff --git a/_editor/_Plugin.js b/_editor/_Plugin.js index b240bbe39..2278a1512 100644 --- a/_editor/_Plugin.js +++ b/_editor/_Plugin.js @@ -144,11 +144,13 @@ var _Plugin = declare("dijit._editor._Plugin", null, { this.enabled = enabled; this.button.set('disabled', !enabled); } - if(typeof this.button.checked == 'boolean'){ - checked = e.queryCommandState(c); - if(this.checked !== checked){ - this.checked = checked; - this.button.set('checked', e.queryCommandState(c)); + if(enabled){ + if(typeof this.button.checked == 'boolean'){ + checked = e.queryCommandState(c); + if(this.checked !== checked){ + this.checked = checked; + this.button.set('checked', e.queryCommandState(c)); + } } } }catch(e){