return;\r
}\r
\r
- if ( !_.committed )\r
- {\r
- _.list.commit();\r
- _.committed = 1;\r
- }\r
+ !_.committed && this.commit();\r
\r
var value = this.getValue();\r
if ( value )\r
if ( me.className )\r
this.element.getFirst().removeClass( me.className + '_panel' );\r
\r
- me.setState( CKEDITOR.TRISTATE_OFF );\r
+ me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );\r
\r
me._.on = 0;\r
\r
commit : function()\r
{\r
this._.list.commit();\r
+ this._.committed = 1;\r
},\r
\r
setState : function( state )\r