You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 - Edit partner form or other form to use "ckeditor" widget in debug mode (with "?debug=" in URL)
2 - logout and login in normal mode (NOT debug mode)
3 - Try to edit a partner to see the ckeditor interface:
OpenERP spawns a Javascript Exception message:
On chrome: Uncaught TypeError: Cannot read property 'options' of undefined
On firefox: TypeError: b.lang.contextmenu is undefined
The text was updated successfully, but these errors were encountered:
CKEditor will load scripts dynamically. Especially the language files which are located in the subdirectory lang/{en,en,...}.js. To load a script it uses CKEDITOR.scriptLoader.load method by giving it the supposed URL where we could find the target js files. This is the code:
The getUrl fails miserabily to locate the file when in "production" mode because all javascript files are compacted into one big file by OpenERP webservice which url is http://myhost/web/webclient/js. In debug mode, javascript files are uncompressed AND directly accessed through their own URL actually following the static folder hierarchy (with URLs in the form: http://myhost/web_ckeditor/static/...).
To reproduce:
1 - Edit partner form or other form to use "ckeditor" widget in debug mode (with "?debug=" in URL)
2 - logout and login in normal mode (NOT debug mode)
3 - Try to edit a partner to see the ckeditor interface:
OpenERP spawns a Javascript Exception message:
On chrome: Uncaught TypeError: Cannot read property 'options' of undefined
On firefox: TypeError: b.lang.contextmenu is undefined
The text was updated successfully, but these errors were encountered: