disabled context menu in simple view to enable FF2 and IE7 spellchecker

This commit is contained in:
Lars Kneschke 2007-05-09 15:37:25 +00:00
parent 0f5ccb8c9f
commit defef645e2
6 changed files with 12 additions and 6 deletions

View File

@ -621,6 +621,7 @@ class html
switch($_mode) {
case 'simple':
$oFCKeditor->ToolbarSet = 'egw_simple';
$oFCKeditor->Config['ContextMenu'] = false;
break;
default:
@ -661,6 +662,7 @@ class html
return "<textarea name=\"$_name\" style=\"width:100%; height:400px; border:0px;\">$_content</textarea>";
break;
case 'simple':
$oFCKeditor->Config['ContextMenu'] = false;
$oFCKeditor->ToolbarSet = 'egw_simple';
return $oFCKeditor->CreateHTML() ;
break;

View File

@ -60,8 +60,10 @@ FCK.InitializeBehaviors = function()
this.EditorDocument.addEventListener( 'dblclick', this._DblClickListener, true ) ;
// Reset the context menu.
FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ;
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ;
if ( FCKConfig.ContextMenu != null ) {
FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ;
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ;
}
}
FCK.MakeEditable = function()

View File

@ -127,7 +127,8 @@ FCK.InitializeBehaviors = function( dontReturn )
this.EditorDocument.body.attachEvent( 'onpaste', Doc_OnPaste ) ;
// Reset the context menu.
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ;
if ( FCKConfig.ContextMenu != null )
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ;
// Build the "TAB" key replacement (if necessary).
if ( FCKConfig.TabSpaces > 0 )

View File

@ -101,7 +101,8 @@ LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;
<script type="text/javascript">
// Initialize the editing area context menu.
FCK_ContextMenu_Init() ;
if ( FCKConfig.ContextMenu != null )
FCK_ContextMenu_Init() ;
FCKPlugins.Load() ;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long