From 5db9678c29b80ad096921e646a74e08d16224003 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Sat, 27 Jun 2009 13:15:49 +0200 Subject: [PATCH] [svn r21643] FS#2867 - The FCKEditor: Applying an IE8-specific patch. Previously, javascript error raised when the vertical scrollbar of the editor was pressed. --- .../plugins/customizations/fckplugin.js | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js index df1f25ce1d..a4b8791038 100644 --- a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js +++ b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js @@ -129,7 +129,7 @@ if ( FCKConfig.BaseHref.length > 0 ) */ // The icon for the image properties button/command. -if (!FCKConfig.ImagesIcon) +if ( !FCKConfig.ImagesIcon ) { // This is the original icon from a chosen skin. //FCKConfig.ImagesIcon = 37 ; @@ -1704,3 +1704,34 @@ FCK.GetServerBase = function ( url ) return url ; } ; + + +/* + ************************************************************************************** + * Patches. + ************************************************************************************** + */ + +if ( FCKBrowserInfo.IsIE ) +{ + + function Doc_OnMouseDown( evt ) + { + var e = evt.srcElement ; + + /* A patch by Ivan Tcholakov, 27-JUN-2009, for suppressing javascript errors under IE8: */ + if ( !e ) return ; + if ( !e.nodeName ) return ; + /* End of patch */ + + // Radio buttons and checkboxes should not be allowed to be triggered in IE + // in editable mode. Otherwise the whole browser window may be locked by + // the buttons. (#1782) + if ( e.nodeName.IEquals( 'input' ) && e.type.IEquals( ['radio', 'checkbox'] ) && !e.disabled ) + { + e.disabled = true ; + FCKTools.SetTimeout( _FCK_RemoveDisabledAtt, 1, e ) ; + } + } + +}