Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#6328 closed Bug (invalid)

'lang.contextmenu.options' is null or not an object

Reported by: Jörgen Rydenius Owned by:
Priority: Normal Milestone:
Component: General Version: 3.3.2
Keywords: Cc:


If using a browser with language setting that has no corresponding javascript file in ckeditor/lang, then Internet Explorer will fail to load the CK editor with javascript error message:

'lang.contextmenu.options' is null or not an object
ckeditor.js, row 45 char 813

It looks to me like there is some broken fallback handling here? I would have expected it to use "en.js" or something like that when no matching script file was found.

To repeat: remove the javascript file in ckeditor/lang directory that corresponds to your browser's language setting and try open the ckeditor.

Change History (4)

comment:1 Changed 9 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

If you remove language files manually then you must force the language to avoid these problems or update the _languages.js file

comment:2 Changed 9 years ago by Jörgen Rydenius

But the same thing happens when the corresponding mapping is removed from ckeditor/lang/_languages.js too! I would have expected it to fallback to CKEDITOR.config.defaultLanguage then.

comment:3 Changed 9 years ago by Jörgen Rydenius

Summary: IE: 'lang.contextmenu.options' is null or not an object'lang.contextmenu.options' is null or not an object

By the way, this problem is not isolated to IE, Firefox says "l.lang.contextmenu is undefined" in the same situation.

comment:4 Changed 9 years ago by Jörgen Rydenius

My fault, available languages was mapped inside the minified ckeditor.js too (assignment of "a.lang"). Removing language from there too fixed my problem. Sorry about the invalid bug report.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy