When editing a node, the following line (#76) in js/ace_editor.admin.js
var HTMLMode = ace.require("ace/mode/html").Mode;
results in a JavaScript error:
Uncaught TypeError: Object #<Object> has no method 'require'
As a result, the Ace editor block is empty.
Comments
Comment #1
maxneaga commentedComment #2
Growiel commentedHi,
Could you tell me which version of both Ace Editor Javascript and jQuery you are using ?
Thanks.
Comment #3
tempo22 commentedI had the same issues, problem was using an old version of Ace editor from a download page.
To get latest build download zip from this page : https://github.com/ajaxorg/ace-builds/
I used the src-noconflict-min
Comment #5
Growiel commentedThanks, I updated the description page for the module and the README to link a different page than the old one.
The old seems to stop as version 0.2.0 when AceEditor is at version 1.1.2 ...
I'm closing this.
If someone really needs to use an older version, I can probably add version checking to use the correct load method, but older versions are sometimes incompatible with other JS libraries like Require.js .