diff --git a/main/inc/lib/fckeditor/editor/fckdialog.html b/main/inc/lib/fckeditor/editor/fckdialog.html index c8687781b9..96f4902f56 100644 --- a/main/inc/lib/fckeditor/editor/fckdialog.html +++ b/main/inc/lib/fckeditor/editor/fckdialog.html @@ -416,7 +416,10 @@ var Selection = // Move the focus to the Cancel button so even if the dialog contains a // contentEditable element the selection is properly restored in the editor #2496 window.focus() ; - $( 'btnCancel' ).focus() ; + if ( $( 'btnCancel' ) ) + { + $( 'btnCancel' ).focus() ; + } FCK.Selection.Restore() ; }, @@ -584,6 +587,21 @@ var onReadyRegister = function() { $( 'contents' ).dir = langDir; + var src = Args().Page ; + if ( src.indexOf( 'manager.php' ) != -1 ) + { + var PopupButtons = $( 'PopupButtons' ) ; + while ( PopupButtons && PopupButtons.firstChild ) + { + PopupButtons.removeChild( PopupButtons.firstChild ) ; + } + PopupButtons.style.border = '0px'; + if ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) + { + PopupButtons.style.width = '100%'; + } + } + // Start the throbber timer. Throbber.Show( 1000 ) ; @@ -789,7 +807,7 @@ var onReadyRegister = function() // ]]> -
+| - + - + |