Opened 17 years ago

Closed 17 years ago

#311 closed New Feature (fixed)

Option to disable ContextMenu

Reported by: Nicolas 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 17 years ago by Frederico Caldeira Knabben

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 17 years ago by Alfonso Martínez de Lizarrondo

Milestone: FCKeditor 2.4.3
Resolution: fixed
Status: newclosed

Fixed by FredCK with [343]

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy