Ticket #3835: 3835.patch
File 3835.patch, 1.3 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
189 189 // Inserting the padding-br before body if it's preceded by an 190 190 // unexitable block. 191 191 var lastNode = body.getLast( true ); 192 if ( lastNode .getName && ( lastNode.getName() in nonExitableElementNames ) )192 if ( lastNode && lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) ) 193 193 { 194 194 var paddingBlock = editor.document.createElement( 195 195 ( CKEDITOR.env.ie && enterMode != CKEDITOR.ENTER_BR ) ? -
_source/core/dom/window.js
1 ?/*1 /* 2 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ … … 35 35 */ 36 36 focus : function() 37 37 { 38 // Webkit is sometimes failed to focus iframe, blur it first(#3835). 39 if( CKEDITOR.env.webkit && this.$.parent ) 40 this.$.parent.focus(); 38 41 this.$.focus(); 39 42 }, 40 43