Ticket #6552: 6552.patch
File 6552.patch, 2.0 KB (added by , 13 years ago) |
---|
-
_source/plugins/scayt/plugin.js
357 357 }, 358 358 loadEngine : function( editor ) 359 359 { 360 // SCAYT doesn't work with Firefox2, Opera .361 if ( CKEDITOR.env.gecko && CKEDITOR.env.version < 10900 || CKEDITOR.env.opera)360 // SCAYT doesn't work with Firefox2, Opera, Adobe AIR 361 if ( (CKEDITOR.env.gecko && CKEDITOR.env.version < 10900) || CKEDITOR.env.opera || CKEDITOR.env.air ) 362 362 return editor.fire( 'showScaytState' ); 363 363 364 364 if ( this.engineLoaded === true ) … … 754 754 { 755 755 editor.removeListener( 'showScaytState', showInitialState ); 756 756 757 if ( !CKEDITOR.env.opera )757 if ( !CKEDITOR.env.opera && !CKEDITOR.env.air ) 758 758 command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); 759 759 else 760 760 command.setState( CKEDITOR.TRISTATE_DISABLED ); … … 762 762 763 763 editor.on( 'showScaytState', showInitialState ); 764 764 765 if ( CKEDITOR.env.opera )765 if ( CKEDITOR.env.opera || CKEDITOR.env.air ) 766 766 { 767 767 editor.on( 'instanceReady', function() 768 768 { -
_source/plugins/wsc/plugin.js
18 18 var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) ); 19 19 20 20 // SpellChecker doesn't work in Opera and with custom domain 21 command.modes = { wysiwyg : ( !CKEDITOR.env.opera && document.domain == window.location.hostname ) };21 command.modes = { wysiwyg : ( !CKEDITOR.env.opera && !CKEDITOR.env.air && document.domain == window.location.hostname ) }; 22 22 23 23 editor.ui.addButton( 'SpellChecker', 24 24 {