Ace editor “define is not defined”-open source projects ajaxorg/ace
I’m trying to add the ace editor to my app. I downloaded it from github, dropped the “ace/lib/ace” directory into my app’s directory, included:
"
in my body tag and:
editor = ace.edit "editor"
in my script tag. I’ve tried to load the page in Chrome and Firefox and I get “define is not defined” in ace.js:46. The line in ace.js is:
define(function(require, exports, module) {
Does anyone know why ace is expecting the define() function to exist and why it’s not finding it? Here’s my source:
some text
var editor = ace.edit("editor");