Opened 10 years ago

Closed 10 years ago

#311 closed New Feature (fixed)

Option to disable ContextMenu

Reported by: nicolasm Owned by:
Priority: Normal Milestone: FCKeditor 2.4.3
Component: UI : Context Menu Version:
Keywords: Discussion Cc:

Description

It would be nice to have an option to disable FCKEditor custom Context menu. This way, browsers spellcheckers (google toolbar or FF2) may be used, for example.

It may be done in fckeditor.htm, line 103:

// Initialize the editing area context menu.
FCK_ContextMenu_Init() ;

replaced by:

// Initialize the editing area context menu.
if ( FCKConfig.ContextMenu != null )
  FCK_ContextMenu_Init() ;

in fck_gecko.js, line 62:

// Reset the context menu.
if ( FCKConfig.ContextMenu != null )
{
  FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow( FCK.EditorWindow ) ;
  FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument ) ;
}

and in fck_ie.js, line 129:

// Reset the context menu.
if ( FCKConfig.ContextMenu != null )
  FCK.ContextMenu._InnerContextMenu.AttachToElement( FCK.EditorDocument.body);

You just have to set FCKConfig.ContextMenu = null; in your custom config file to disable the custom menu in the editor area. Default context menu is still disabled on FCK toolbars. Most features are still available through toolbar buttons.

Proposed implementation tested on FF 2.0.0.3 and IE6.

Change History (2)

comment:1 Changed 10 years ago by fredck

  • Keywords Discussion added; disabling ContextMenu removed

What about creating a setting that, if enabled, makes it possible to show the default context menu if right clicking with CTRL pressed, for example?

comment:2 Changed 10 years ago by alfonsoml

  • Milestone set to FCKeditor 2.4.3
  • Resolution set to fixed
  • Status changed from new to closed

Fixed by FredCK with [343]

Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy