X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Frichcombo%2Fplugin.js;h=d7895c8b947fc763b1506427d9b765297e022c4c;hb=9afde8772159bd3436f1f5b7862960307710ae5a;hp=bcc5777bf28254ac34d52c6a4ba5e798ab3db206;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git
diff --git a/_source/plugins/richcombo/plugin.js b/_source/plugins/richcombo/plugin.js
index bcc5777..d7895c8 100644
--- a/_source/plugins/richcombo/plugin.js
+++ b/_source/plugins/richcombo/plugin.js
@@ -106,12 +106,7 @@ CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass(
return;
}
- if ( !_.committed )
- {
- _.list.commit();
- _.committed = 1;
- }
-
+ this.commit();
var value = this.getValue();
if ( value )
_.list.mark( value );
@@ -201,7 +196,7 @@ CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass(
'' +
'' + this.label + '' +
'' +
- '' + ( CKEDITOR.env.hc ? '▼' : '' ) + '' + // BLACK DOWN-POINTING TRIANGLE
+ '' + ( CKEDITOR.env.hc ? '▼' : CKEDITOR.env.air ? ' ' : '' ) + '' + // BLACK DOWN-POINTING TRIANGLE
'' +
'' +
'' );
@@ -244,7 +239,7 @@ CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass(
if ( me.className )
this.element.getFirst().removeClass( me.className + '_panel' );
- me.setState( CKEDITOR.TRISTATE_OFF );
+ me.setState( me.modes && me.modes[ editor.mode ] ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_DISABLED );
me._.on = 0;
@@ -349,7 +344,13 @@ CKEDITOR.ui.richCombo = CKEDITOR.tools.createClass(
commit : function()
{
- this._.list.commit();
+ if ( !this._.committed )
+ {
+ this._.list.commit();
+ this._.committed = 1;
+ CKEDITOR.ui.fire( 'ready', this );
+ }
+ this._.committed = 1;
},
setState : function( state )