Changeset 4279
- Timestamp:
- 09/23/09 12:48:50 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/wysiwygarea/plugin.js
r4278 r4279 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 … … 135 142 range = selection.getRanges()[0], 136 143 body = editor.document.getBody(), 137 enterMode = editor.config.enterMode, 138 isDirtyBeforeFix = editor.checkDirty(); 144 enterMode = editor.config.enterMode; 139 145 140 146 // When enterMode set to block, we'll establing new paragraph only if we're … … 145 151 && !path.block ) 146 152 { 153 restoreDirty( editor ); 147 154 var bms = selection.createBookmarks(), 148 155 fixedBlock = range.fixBlock( true, … … 195 202 if ( lastNode && lastNode.getName && ( lastNode.getName() in nonExitableElementNames ) ) 196 203 { 204 restoreDirty( editor ); 197 205 var paddingBlock = editor.document.createElement( 198 206 ( CKEDITOR.env.ie && enterMode != CKEDITOR.ENTER_BR ) ? … … 200 208 body.append( paddingBlock ); 201 209 } 202 203 // DOM modification here should not bother dirty flag.(#4385)204 if( !isDirtyBeforeFix )205 editor.resetDirty();206 210 } 207 211
Note: See TracChangeset
for help on using the changeset viewer.
