Ticket #3580: 3580.patch
File 3580.patch, 1.3 KB (added by , 15 years ago) |
---|
-
_source/plugins/undo/plugin.js
55 55 function recordCommand( event ) 56 56 { 57 57 // If the command hasn't been marked to not support undo. 58 if ( undoManager.enabled && event.data.command.canUndo !== false ) 58 var command = event.data.command; 59 if ( undoManager.enabled && command.canUndo !== false && 60 !( command.canUndoAfter === false && event.name == 'afterCommandExec' ) ) 59 61 undoManager.save(); 60 62 } 61 63 -
_source/plugins/sourcearea/plugin.js
188 188 { 189 189 editor.getCommand( 'source' ).setState( CKEDITOR.TRISTATE_DISABLED ); 190 190 editor.setMode( editor.mode == 'source' ? 'wysiwyg' : 'source' ); 191 } 191 }, 192 193 /* 194 * #3580: editor.mode is empty right after executing this command, which 195 * causes editor.getSnapshot() to return false. Grabbing one more snapshot 196 * after command execution is meaningless for Source anyway. 197 * 198 * So disable it. 199 */ 200 canUndoAfter : false 192 201 } 193 202 } 194 203 };