{"id":7818,"date":"2015-10-30T00:24:02","date_gmt":"2015-10-30T00:24:02","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/30\/ace-editor-define-is-not-defined-open-source-projects-ajaxorg-ace\/"},"modified":"2015-10-30T00:24:02","modified_gmt":"2015-10-30T00:24:02","slug":"ace-editor-define-is-not-defined-open-source-projects-ajaxorg-ace","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/30\/ace-editor-define-is-not-defined-open-source-projects-ajaxorg-ace\/","title":{"rendered":"Ace editor &#8220;define is not defined&#8221;-open source projects ajaxorg\/ace"},"content":{"rendered":"<p>I&#8217;m trying to add the ace editor to my app. I downloaded it from github, dropped the &#8220;ace\/lib\/ace&#8221; directory into my app&#8217;s directory, included:<\/p>\n<pre><code>\"\n<\/code><\/pre>\n<p>in my body tag and:<\/p>\n<pre><code>editor = ace.edit \"editor\"\n<\/code><\/pre>\n<p>in my script tag. I&#8217;ve tried to load the page in Chrome and Firefox and I get &#8220;define is not defined&#8221; in ace.js:46. The line in ace.js is:<\/p>\n<pre><code>define(function(require, exports, module) {\n<\/code><\/pre>\n<p>Does anyone know why ace is expecting the define() function to exist and why it&#8217;s not finding it? Here&#8217;s my source:<\/p>\n<pre><code>\n  \n    some text\n    \n    \n      var editor = ace.edit(\"editor\");\n    \n  \n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to add the ace editor to my app. I downloaded it from github, dropped the &#8220;ace\/lib\/ace&#8221; directory into my app&#8217;s directory, included: &#8221; in my body tag and: editor = ace.edit &#8220;editor&#8221; in my script tag. I&#8217;ve tried to load the page in Chrome and Firefox and I get &#8220;define is not defined&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7818","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7818"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7818\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}