Ticket #3593: 3593_3.patch

File 3593_3.patch, 1.6 KB (added by mattis, 15 years ago)

Updated patch to work with latest SVN revision of WYSIWYG plugin

  • _source/plugins/wysiwygarea/plugin.js

     
    358358                                                        // Disable and re-enable the body to avoid IE from
    359359                                                        // taking the editing focus at startup. (#141 / #523)
    360360                                                        body.disabled = true;
    361                                                         body.contentEditable = true;
    362361                                                        body.removeAttribute( 'disabled' );
    363362                                                }
    364                                                 else
    365                                                         domDocument.designMode = 'on';
     363                                                // Firefox require design-mode been turned on to make
     364                                                // the cursor blinking when editing frame window gain
     365                                                // keyboard focus.
     366                                                else if ( CKEDITOR.env.gecko ) {
     367                                                        domDocument.designMode = 'on';                                         
     368                                                }
     369 
     370                                                // Standard way to enable rich-text editing on the
     371                                                // whole page beside Firefox2.
     372                                                body.contentEditable = true;
     373
    366374
    367375                                                // IE, Opera and Safari may not support it and throw
    368376                                                // errors.
     
    407415                                                focusTarget.on( 'blur', function()
    408416                                                        {
    409417                                                                editor.focusManager.blur();
     418                                                               
     419                                                                if( CKEDITOR.env.gecko ) {
     420                                                                        editor.document.$.designMode = 'on';
     421                                                                }
    410422                                                        });
    411423
    412424                                                focusTarget.on( 'focus', function()
     
    438450                                                                }
    439451
    440452                                                                editor.focusManager.focus();
     453                                                               
     454
     455                                                                if( CKEDITOR.env.gecko )
     456                                                                        setTimeout( function()
     457                                                                        {
     458                                                                                editor.document.$.designMode = 'off';
     459                                                                        });                                                             
    441460                                                        });
    442461
    443462                                                var keystrokeHandler = editor.keystrokeHandler;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy