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,9 +60,11 @@ 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.
if ( FCKConfig.ContextMenu != null ) {
FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ; FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ;
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ; FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ;
} }
}
FCK.MakeEditable = function() FCK.MakeEditable = function()
{ {

View File

@ -127,6 +127,7 @@ 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.
if ( FCKConfig.ContextMenu != null )
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ; FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ;
// Build the "TAB" key replacement (if necessary). // Build the "TAB" key replacement (if necessary).

View File

@ -101,6 +101,7 @@ 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.
if ( FCKConfig.ContextMenu != null )
FCK_ContextMenu_Init() ; 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