X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fscayt%2Fplugin.js;h=0f3f3391d76907d8e7f700d0137e12c3bdc2a33d;hp=b789c5bc7ca0df14822655e13304628a4badd372;hb=9afde8772159bd3436f1f5b7862960307710ae5a;hpb=614511639979907ceb0da3614122a4d8eb963ad4 diff --git a/_source/plugins/scayt/plugin.js b/_source/plugins/scayt/plugin.js index b789c5b..0f3f339 100644 --- a/_source/plugins/scayt/plugin.js +++ b/_source/plugins/scayt/plugin.js @@ -358,8 +358,8 @@ CKEDITOR.plugins.scayt = }, loadEngine : function( editor ) { - // SCAYT doesn't work with Firefox2, Opera. - if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 || CKEDITOR.env.opera ) + // SCAYT doesn't work with Firefox2, Opera and AIR. + if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 || CKEDITOR.env.opera || CKEDITOR.env.air ) return editor.fire( 'showScaytState' ); if ( this.engineLoaded === true ) @@ -758,7 +758,7 @@ CKEDITOR.plugins.scayt = { editor.removeListener( 'showScaytState', showInitialState ); - if ( !CKEDITOR.env.opera ) + if ( !CKEDITOR.env.opera && !CKEDITOR.env.air ) command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); else command.setState( CKEDITOR.TRISTATE_DISABLED ); @@ -766,7 +766,7 @@ CKEDITOR.plugins.scayt = editor.on( 'showScaytState', showInitialState ); - if ( CKEDITOR.env.opera ) + if ( CKEDITOR.env.opera || CKEDITOR.env.air ) { editor.on( 'instanceReady', function() {