Ticket #6552: 6552.patch

File 6552.patch, 2.0 KB (added by WebSpellChecker.net, 13 years ago)
  • _source/plugins/scayt/plugin.js

     
    357357                },
    358358                loadEngine : function( editor )
    359359                {
    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 )
    362362                                return editor.fire( 'showScaytState' );
    363363
    364364                        if ( this.engineLoaded === true )
     
    754754                                {
    755755                                        editor.removeListener( 'showScaytState', showInitialState );
    756756
    757                                         if ( !CKEDITOR.env.opera )
     757                                        if ( !CKEDITOR.env.opera && !CKEDITOR.env.air )
    758758                                                command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF );
    759759                                        else
    760760                                                command.setState( CKEDITOR.TRISTATE_DISABLED );
     
    762762
    763763                        editor.on( 'showScaytState', showInitialState );
    764764
    765                         if ( CKEDITOR.env.opera )
     765                        if ( CKEDITOR.env.opera || CKEDITOR.env.air )
    766766                        {
    767767                                editor.on( 'instanceReady', function()
    768768                                {
  • _source/plugins/wsc/plugin.js

     
    1818                var command = editor.addCommand( commandName, new CKEDITOR.dialogCommand( commandName ) );
    1919
    2020                // 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 ) };
    2222
    2323                editor.ui.addButton( 'SpellChecker',
    2424                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy