Ticket #4385: 4385.patch
File 4385.patch, 931 bytes (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
134 134 selection = evt.data.selection, 135 135 range = selection.getRanges()[0], 136 136 body = editor.document.getBody(), 137 enterMode = editor.config.enterMode; 137 enterMode = editor.config.enterMode, 138 isDirtyBeforeFix = editor.checkDirty(); 138 139 139 140 // When enterMode set to block, we'll establing new paragraph only if we're 140 141 // selecting inline contents right under body. (#3657) … … 198 199 '<br _cke_bogus="true" />' : 'br' ); 199 200 body.append( paddingBlock ); 200 201 } 202 203 // DOM modification here should not bother dirty flag.(#4385) 204 if( !isDirtyBeforeFix ) 205 editor.resetDirty(); 201 206 } 202 207 203 208 CKEDITOR.plugins.add( 'wysiwygarea',