Ticket #3864: 3864_2.patch
File 3864_2.patch, 2.3 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
338 338 domWindow = editor.window = new CKEDITOR.dom.window( domWindow ); 339 339 domDocument = editor.document = new CKEDITOR.dom.document( domDocument ); 340 340 341 // Gecko need a key event to 'wake up' the editing 342 // ability when document is empty.(#3864) 343 var firstNode = domDocument.getBody().getFirst(); 344 if ( CKEDITOR.env.gecko 345 && firstNode && firstNode.is 346 && firstNode.is( 'br' ) && firstNode.hasAttribute( '_moz_editor_bogus_node' ) ) 347 { 348 var keyEventSimulate = domDocument.$.createEvent( "KeyEvents" ); 349 keyEventSimulate.initKeyEvent( 'keypress', true, true, domWindow.$, false, 350 false, false, false, 0, 32 ); 351 domDocument.$.dispatchEvent( keyEventSimulate ); 352 var bogusText = domDocument.getBody().getFirst() ; 353 // Compensate the line maintaining <br> if enterMode is not block. 354 if ( editor.config.enterMode == CKEDITOR.ENTER_BR ) 355 domDocument.createElement( 'br', { attributes: { '_moz_dirty' : "" } } ) 356 .replace( bogusText ); 357 else 358 bogusText.remove(); 359 } 360 341 361 // Gecko/Webkit need some help when selecting control type elements. (#3448) 342 362 if ( !( CKEDITOR.env.ie || CKEDITOR.env.opera) ) 343 363 { -
CHANGES.html
86 86 <li><a href="http://dev.fckeditor.net/ticket/3812">#3812</a> : Fixed an issue in which the editor 87 87 may show up empty or uneditable in IE7, 8 and Firefox 3.</li> 88 88 <li><a href="http://dev.fckeditor.net/ticket/3825">#3825</a> : Fixed JS error when opening spellingcheck.</li> 89 <li><a href="http://dev.fckeditor.net/ticket/3825">#3862</a> : Fixed html parser infinite loop on certain malformed 90 source code.</li> 91 <li><a href="http://dev.fckeditor.net/ticket/3864">#3864</a> : [FF]Document is not editable after inserting element on a fresh page.</li> 89 92 </ul> 90 93 <h3> 91 94 CKEditor 3.0 RC</h3>