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

View File

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

View File

@ -127,7 +127,8 @@ FCK.InitializeBehaviors = function( dontReturn )
this.EditorDocument.body.attachEvent( 'onpaste', Doc_OnPaste ) ; this.EditorDocument.body.attachEvent( 'onpaste', Doc_OnPaste ) ;
// Reset the context menu. // 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). // Build the "TAB" key replacement (if necessary).
if ( FCKConfig.TabSpaces > 0 ) if ( FCKConfig.TabSpaces > 0 )

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long