Hi,
i'm trying to configure "confirm save before exit", the problems i'm facing is when i try to configure IsDirty with onbeforeunload javascript ,
1) the message pops up while i hit the fck editor's SAVE button, which should not happen.
2) if the editor is blank and if try to navigate to other page, the IsDirty() is returning true instead of false.
i'm trying to configure "confirm save before exit", the problems i'm facing is when i try to configure IsDirty with onbeforeunload javascript ,
1) the message pops up while i hit the fck editor's SAVE button, which should not happen.
2) if the editor is blank and if try to navigate to other page, the IsDirty() is returning true instead of false.
window.onbeforeunload = confirmExit; function confirmExit(){ if(FCKeditorAPI.GetInstance('EditorDefault').IsDirty()){ return "The notes is not saved yet, Please press cancel to go back and save"; } }
Re: problems while configuring IsDirty()
i was able to solve the first issue of mine using OnAfterLinkedFieldUpdate.
i'm still confused why after save when there is no value in the texteditor, isDirty() returns true