Ticket #3473: 3473_5.patch
File 3473_5.patch, 1.5 KB (added by , 15 years ago) |
---|
-
_source/plugins/enterkey/plugin.js
260 259 261 260 // A text node is required by Gecko only to make the cursor blink. 262 261 if ( CKEDITOR.env.gecko ) 263 doc.createText( ' ' ).insertAfter( lineBreak );262 doc.createText( '\ufeff' ).insertAfter( lineBreak ); 264 263 265 264 // If we are at the end of a block, we must be sure the bogus node is available in that block. 266 265 if ( isEndOfBlock && !CKEDITOR.env.ie ) -
_source/core/dom/element.js
241 241 // Ignore empty/spaces text. 242 242 while ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT && !CKEDITOR.tools.rtrim( lastChild.getText() ) ) 243 243 lastChild = lastChild.getPrevious(); 244 245 if ( !lastChild || ( lastChild.is && ( !lastChild.is( 'br' ) || !lastChild.getAttribute( '_cke_bogus' ) ) ) ) 244 if ( !lastChild || !lastChild.is || !lastChild.is( 'br' ) ) 246 245 { 247 246 this.append( 248 247 CKEDITOR.env.opera ? … … 247 246 this.append( 248 247 CKEDITOR.env.opera ? 249 248 this.getDocument().createText('') : 250 this.getDocument().createElement( 'br' , { attributes : { _cke_bogus : 1 } }) );249 this.getDocument().createElement( 'br' ) ); 251 250 } 252 251 }, 253 252