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

maxneaga’s picture

Issue summary: View changes
Growiel’s picture

Hi,

Could you tell me which version of both Ace Editor Javascript and jQuery you are using ?

Thanks.

tempo22’s picture

I 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

  • Commit b0fb30d on 7.x-1.x by Growiel:
    #2230725 by Growiel,tempo22: Update the README to specify that we need...
Growiel’s picture

Status: Active » Fixed

Thanks, 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 .

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.