Hello,
Is it possible to purge the undo list. I have had a look at the code and cannot find an interface to do this.
I tried the code below but "FCKUndo" is not in scope at this point in the execution.
Is there an easy way to get to the FCKUndo object from an editor instance?
function FCKeditor_OnComplete(editorInstance)
{
editorInstance.PurgeUndoList = function()
{
delete FCKUndo;
FCKUndo = new Object() ;
}
}
Christian
Is it possible to purge the undo list. I have had a look at the code and cannot find an interface to do this.
I tried the code below but "FCKUndo" is not in scope at this point in the execution.
Is there an easy way to get to the FCKUndo object from an editor instance?
function FCKeditor_OnComplete(editorInstance)
{
editorInstance.PurgeUndoList = function()
{
delete FCKUndo;
FCKUndo = new Object() ;
}
}
Christian
Re: How do you purge the undo list
I have solved this using the API addition suggested by svrangen.
See http://www.fckeditor.net/forums/viewtopic.php?f=5&t=34&p=66&hilit=ClearUndo#p66
Thanks svrangen and I agree, this should be in the core api.