title: Disable ckeditor context menu in version 4.4.6
body: <p>I am using ckeditor in a Rails4 project. I have tried both the ckeditor gem and the ckeditor_rails gem to provide the ckeditor libraries.</p>
  
  <p>There are multiple posts here by people wanting to remove the ckeditor context menu so that the native browser context menu can be displayed.</p>
  
  <p>This is usually to enable the browser spellchecker to be used rather than the ckeditor paid / advertised spellchecker.</p>
  
  <p><a href="https://stackoverflow.com/questions/25023478/how-to-remove-contextmenu-in-ckeditor-4-3">how-to-remove-contextmenu-in-ckeditor-4-3</a></p>
  
  <p><a href="https://stackoverflow.com/questions/11549038/ckeditor-3-6-3-enable-browser-spellcheck-and-disable-context-menu">ckeditor-3-6-3-enable-browser-spellcheck-and-disable-context-menu</a></p>
  
  <p><a href="https://stackoverflow.com/questions/2246631/how-to-disable-ckeditor-context-menu/20229730#20229730">how-to-disable-ckeditor-context-menu/20229730#20229730</a></p>
  
  <p>The third link has the most replies but none of them are universally accepted.
  Generally the reply is to remove the contextmenu plugin by placing the following in the ckeditor config.js</p>
  
  <pre><code>config.removePlugins = 'contextmenu';
  </code></pre>
  
  <p>There is also the suggestion that contextmenu is a dependency on other plugins and different people add a multitude of other plugins to be removed as well.</p>
  
  <p>One helpful post suggests running the following code in the console to establish the dependencies.</p>
  
  <pre><code>$.each(CKEDITOR.plugins, function(k, v){ 
      v.requires &amp;&amp; console.log("Plugin '" + k + "' requires: " + v.requires) 
  })
  </code></pre>
  
  <p>This seems to work well and suggests that tabletools and liststyle plugin is dependent on contextmenu. So we end up with </p>
  
  <pre><code>config.removePlugins = 'liststyle,tabletools,contextmenu';
  </code></pre>
  
  <p>Unfortunately this does not disable the context menu in the version of ckeditor that I am using (4.4.6 established by adding alert(CKEDITOR.version) in the config.js)</p>
  
  <p>Finally there is a suggestion to use the following code in config.js</p>
  
  <pre><code>CKEDITOR.on('instanceReady', function(ev) {
     ev.editor.editable().addClass('cke_enable_context_menu')
  });
  </code></pre>
  
  <p>There is no suggestion as to how this is meant to disable the context menu but in any case it makes no difference for me.</p>
  
  <p>For me this is a showstopper as the ckeditor context menu hides the browser spelling suggestions and the cut and paste options it contains do not actually work but just bring up the browser dialog.</p>
  
  <blockquote>
    <p>Your browser security settings don't permit the editor to
    automatically execute copying operations. Please use the keyboard for
    that (Ctrl/Cmd+C).</p>
  </blockquote>
  
  <p>In all other aspects ckeditor does seem to be the best functioning editor out there.</p>