[svn r21980] FS#2867 - The online editor: Adding temporarily try-catch blocks inside "Ok" and "Cancel" dialog's event-functions.

skala
Ivan Tcholakov 16 years ago
parent eb06a9eb51
commit 5fd8b178e7
  1. 13
      main/inc/lib/fckeditor/editor/fckdialog.html

@ -717,8 +717,14 @@ var onReadyRegister = function()
} ;
window.Ok = function()
{
// Try-catch block added temporarily by Ivan Tcholakov, July 11, 2009.
try
{
Selection.EnsureSelection() ;
}
catch ( ex ) { }
//
var frmMain = window.frames["frmMain"] ;
@ -729,8 +735,15 @@ var onReadyRegister = function()
} ;
window.Cancel = function( dontFireChange )
{
// Try-catch block added temporarily by Ivan Tcholakov, July 11, 2009.
try
{
Selection.EnsureSelection() ;
}
catch ( ex ) { }
//
return CloseDialog( dontFireChange ) ;
} ;

Loading…
Cancel
Save