[SOLVED][Drupal CKEditor] "m.lang.contextmenu is undefined" error message

| | 1 min read

A few Drupal users have encountered an error in their CKEditor in their Drupal website with the editor UI buttons failing to appear. The Firefox error log displayed the following error message "m.lang.contextmenu is undefined.". If you are facing the same issue in your Drupal website, then continue reading to find out more.

Here is the solution to the problem.

  • Make sure that you have correctly set the path to ckeditor.js. It must begin at the website's document root. For example.
  • <script type="text/javascript">
    var CKEDITOR_BASEPATH = '/ckeditor/';
  • This error can also occur if there are not enough permissions to access the js files on the server. So make sure that the file permissions are set correctly

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.