Ticket #4385: 4385_2.patch
File 4385_2.patch, 1.3 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
122 122 } 123 123 } 124 124 125 // DOM modification here should not bother dirty flag.(#4385) 126 function restoreDirty( editor ) 127 { 128 if( !editor.checkDirty() ) 129 setTimeout( function(){ editor.resetDirty() } ); 130 } 131 125 132 /** 126 133 * Auto-fixing block-less content by wrapping paragraph (#3190), prevent 127 134 * non-exitable-block by padding extra br.(#3189) … … 143 150 && blockLimit.getName() == 'body' 144 151 && !path.block ) 145 152 { 153 restoreDirty( editor ); 146 154 var bms = selection.createBookmarks(), 147 155 fixedBlock = range.fixBlock( true, 148 156 editor.config.enterMode == CKEDITOR.ENTER_DIV ? 'div' : 'p' ); … … 193 201 var lastNode = body.getLast( CKEDITOR.dom.walker.whitespaces( true ) ); 194 202 if ( lastNode && lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) ) 195 203 { 204 restoreDirty( editor ); 196 205 var paddingBlock = editor.document.createElement( 197 206 ( CKEDITOR.env.ie && enterMode != CKEDITOR.ENTER_BR ) ? 198 207 '<br _cke_bogus="true" />' : 'br' );