Ticket #3871: 3871_2.patch
File 3871_2.patch, 2.1 KB (added by , 15 years ago) |
---|
-
_source/plugins/editingblock/plugin.js
171 171 172 172 var currentMode = getMode( this ); 173 173 data = currentMode.getData(); 174 data = this.fire( 'beforeModeUnload', data ); 174 175 currentMode.unload( holderElement ); 175 176 this.mode = ''; 176 177 } -
_source/plugins/undo/plugin.js
81 81 82 82 } ); 83 83 84 // Always save an undo snapshot - the previous mode might have 85 // changed editor contents. 86 editor.on( 'beforeModeUnload', function() 87 { 88 editor.mode == 'wysiwyg' && undoManager.save( true ); 89 } ); 90 84 91 // Make the undo manager available only in wysiwyg mode. 85 92 editor.on( 'mode', function() 86 93 { 87 if ( editor.mode == 'wysiwyg' ) 88 { 89 if ( !undoManager.enabled ) 90 { 91 undoManager.enabled = true; 92 // Always save an undo snapshot - the previous mode might have changed 93 // editor contents. 94 undoManager.save( true ); 95 } 96 } 97 else 98 undoManager.enabled = false; 99 94 undoManager.enabled = editor.mode == 'wysiwyg'; 100 95 undoManager.onChange(); 101 96 }); 102 97 -
CHANGES.html
88 88 <li><a href="http://dev.fckeditor.net/ticket/3825">#3825</a> : Fixed JS error when opening spellingcheck.</li> 89 89 <li><a href="http://dev.fckeditor.net/ticket/3862">#3862</a> : Fixed html parser infinite loop on certain malformed 90 90 source code.</li> 91 <li><a href="http://dev.fckeditor.net/ticket/3871">#3871</a> : Unable to redo when undos to the front of snapshots stack.</li> 91 92 </ul> 92 93 <h3> 93 94 CKEditor 3.0 RC</h3>