Ticket #3835: 3835.patch

File 3835.patch, 1.3 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    189189                // Inserting the padding-br before body if it's preceded by an
    190190                // unexitable block.
    191191                var lastNode = body.getLast( true );
    192                 if ( lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) )
     192                if ( lastNode && lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) )
    193193                {
    194194                        var paddingBlock = editor.document.createElement(
    195195                                        ( CKEDITOR.env.ie && enterMode != CKEDITOR.ENTER_BR ) ?
  • _source/core/dom/window.js

     
    1 ?/*
     1/*
    22Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
    33For licensing, see LICENSE.html or http://ckeditor.com/license
    44*/
     
    3535                 */
    3636                focus : function()
    3737                {
     38                        // Webkit is sometimes failed to focus iframe, blur it first(#3835).
     39                        if( CKEDITOR.env.webkit && this.$.parent )
     40                                this.$.parent.focus();
    3841                        this.$.focus();
    3942                },
    4043
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy