forked from extern/egroupware
disabled context menu in simple view to enable FF2 and IE7 spellchecker
This commit is contained in:
parent
0f5ccb8c9f
commit
defef645e2
@ -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;
|
||||
|
@ -60,9 +60,11 @@ FCK.InitializeBehaviors = function()
|
||||
this.EditorDocument.addEventListener( 'dblclick', this._DblClickListener, true ) ;
|
||||
|
||||
// Reset the context menu.
|
||||
if ( FCKConfig.ContextMenu != null ) {
|
||||
FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ;
|
||||
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ;
|
||||
}
|
||||
}
|
||||
|
||||
FCK.MakeEditable = function()
|
||||
{
|
||||
|
@ -127,6 +127,7 @@ FCK.InitializeBehaviors = function( dontReturn )
|
||||
this.EditorDocument.body.attachEvent( 'onpaste', Doc_OnPaste ) ;
|
||||
|
||||
// Reset the context menu.
|
||||
if ( FCKConfig.ContextMenu != null )
|
||||
FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body ) ;
|
||||
|
||||
// Build the "TAB" key replacement (if necessary).
|
||||
|
@ -101,6 +101,7 @@ LoadScript( 'lang/' + FCKLanguageManager.ActiveLanguage.Code + '.js' ) ;
|
||||
<script type="text/javascript">
|
||||
|
||||
// Initialize the editing area context menu.
|
||||
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
Loading…
Reference in New Issue
Block a user