Ticket #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
Note: See
TracTickets for help on using
tickets.