Opened 16 years ago
Closed 16 years ago
#2702 closed New Feature (fixed)
reset undo history
Reported by: | Cean Perkins | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Undo & Redo | Version: | |
Keywords: | Confirmed | Cc: |
Description
a Simple function to reset the undo history so that you can reuse an editor window with out having to reload in order to clear the current undo/redo history.
The function is very simple .. just resets the undo vars
FCKUndo.resetUndoState = function() { //simple reset of the undo history this.SavedData = new Array() ; this.CurrentIndex = -1 ; this.TypesCount = 0 ; this.Changed = false ; this.Typing = false ; this.SaveLocked = false ; FCK.Events.FireEvent( "OnSelectionChange" ) ; // this updates the undo and redo toolbar status }
Attachments (3)
Change History (8)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Keywords: | undo history reset removed |
---|---|
Milestone: | FCKeditor 2.6.4 |
Thanks for the suggestion. But 2.6.4 is going to be released soon so we're not accepting feature requests for it right now.
comment:3 Changed 16 years ago by
Keywords: | Confirmed added |
---|
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
We'll keep this as a V3 only feature.
To make this actually really useful ... changes to both fck.js and fckundo.js need to be made:
fck.js
fckundo.js
The function can then be called through the editor instance EG oEditor.ResetUndoState();
or inside plugins EG: FCKUndo.resetUndoState(); FCK.Events.FireEvent("OnSelectionChange");