66439

How to Remove ContextMenu in CKEditor 4.3

Question:

I am having a hard time trying to disable the context menu from the editor. For instance when a user clicks on a image I don't want to show that context menu but the browser context.

I tried to add to remove plugins configuration setting "contextmenu" but that did nothing. From the posts I seen here the soultion to get rid of the context menu seems to change every version.

Answer1:

Tested in Ckeditor 4.7.1, works for me:

CKEDITOR.editorConfig = function (config) { config.language = 'en'; config.toolbar = "mini"; config.removePlugins = 'elementspath,contextmenu,liststyle,tabletools,tableselection'; config.disableNativeSpellChecker = false; }

Answer2:

The solution was always the same:

config.removePlugins = 'contextmenu,tabletools';

And I don't know any situation in which this does not work. See an <a href="http://jsfiddle.net/xay4E/" rel="nofollow">example</a>.

PS. Disabling CKEditor's context menu isn't recommended.

<strong>EDIT:</strong> My fault, I haven't checked the console. To remove the contextmenu plugin I first need to remove tabletools which requires the first one. So I updated an example - see <a href="http://jsfiddle.net/xay4E/4/" rel="nofollow">http://jsfiddle.net/xay4E/4/</a>. When you can't disable some plugin, because of requirements, an error is logged on the console.

Recommend

  • invalid register for .seh_savexmm in Cygwin
  • Trying to find and install libstdc++.so.5 to run C++ with mex for MATLAB
  • Why WPF ScrollViewer Language is tr but ContextMenu command texts are in English?
  • Jquery ajax error when upgrading to v1.5
  • QMenu: Set text color for specific QAction
  • Can I use Kaleo and other portlets from Liferay 6.1.0. in 6.1.1 version?
  • Javascript: parseInt() with trailing characters
  • SSIS Converting Percent to Decimal
  • Automatic process monitoring/management with Python
  • JQueryMobile: SelectWidget not showing after second page visit
  • Writing to class member through const &
  • In scipy why doesn't idct(dct(a)) equal to a?
  • wordpress query - next two events by metadata date
  • d3js: time scaling and “1901”
  • Is Android's ARGB_8888 Bitmap internal format always RGBA?
  • Trouble downloading file from browser on Android
  • Override bootstrap style not working
  • substitute period from abbreviation (single letter + period) unless followed by a capital letter
  • Fluid video height
  • Weird LEFT OUTER JOIN on Includes eager loading of rails 3
  • What is the best way to include a style sheet for a specific page?
  • Refresh other frame, from another frame. Jquery
  • Full 8 bit adder, illogical output
  • Visual studio alerts workspace already exists
  • C#: Import/Export Settings into/from a File
  • x64 applications using gdi+: what are the consequences on performance?
  • Webgrid not refreshing after delete MVC
  • Ionic 2 storage is not cleaning up on uninstall - Only for signed APK
  • Deleting and Updating values from a cusrsor adapter
  • Deserializing XML into class C#
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Calling of Constructors in a Java
  • Traverse Array and Display in markup
  • Transpose CSV data with awk (pivot transformation)
  • How to include full .NET prerequisite for Wix Burn installer
  • Why can't I rebase on to an ancestor of source changesets if on a different branch?
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Linking SubReports Without LinkChild/LinkMaster
  • costura.fody for a dll that references another dll
  • jQuery Masonry / Isotope and fluid images: Momentary overlap on window resize