Index: trunk/admin/editor/cmseditor/editor/_source/internals/fck_2.js =================================================================== diff -u -r1415 -r1455 --- trunk/admin/editor/cmseditor/editor/_source/internals/fck_2.js (.../fck_2.js) (revision 1415) +++ trunk/admin/editor/cmseditor/editor/_source/internals/fck_2.js (.../fck_2.js) (revision 1455) @@ -25,12 +25,20 @@ FCK.ExecuteNamedCommand = function( commandName, commandParameter ) { - if ( FCK.RedirectNamedCommands[ commandName ] != null ) + if ( FCK.RedirectNamedCommands[ commandName ] != null ) { FCK.ExecuteRedirectedNamedCommand( commandName, commandParameter ) ; + } else { FCK.Focus() ; - FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ; + //alert(commandName); + + if (commandName == "Undo") + { + if (confirm("This will delete everything on this page. Are you sure?")) + FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ; + } else + FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ; FCK.Events.FireEvent( 'OnSelectionChange' ) ; } } @@ -40,7 +48,6 @@ try { - //alert(commandName); if (commandName == 'InsertHorizontalRule') return FCK_TRISTATE_OFF; if ( !FCK.EditorDocument.queryCommandEnabled( commandName ) )