Ticket #5684: 5684_2.patch

File 5684_2.patch, 1.4 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/clipboard/plugin.js

     
    218218                                evt.data.preventDefault();
    219219                        }
    220220                        else
    221                         {
    222                                 doc.$.designMode = 'off';
    223221                                pastebin.$.focus();
    224                         }
    225                 }
     222                }
    226223                else
    227224                {
    228225                        range.setStartAt( pastebin, CKEDITOR.POSITION_AFTER_START );
     
    230227                        range.select( true );
    231228                }
    232229
     230                var editor  = this;
    233231                // Wait a while and grab the pasted contents
    234232                window.setTimeout( function()
    235233                {
    236                         mode == 'text' && !CKEDITOR.env.ie && ( doc.$.designMode = 'on' );
     234                        mode == 'text' && CKEDITOR.env.gecko && editor.focusGrabber.focus();
    237235                        pastebin.remove();
    238236
    239237                        // Grab the HTML contents.
  • _source/plugins/wysiwygarea/plugin.js

     
    11361136                                                {
    11371137                                                        editor.focus();
    11381138                                                } );
     1139
     1140                                        editor.focusGrabber = focusGrabber;
    11391141                                } );
    11401142                                editor.on( 'destroy', function()
    11411143                                {
    11421144                                        CKEDITOR.tools.removeFunction( contentDomReadyHandler );
    11431145                                        focusGrabber.clearCustomData();
     1146                                        delete editor.focusGrabber;
    11441147                                } );
    11451148                        }
    11461149
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy