"ace" is not defined

450 views
Skip to first unread message

Brian D

unread,
May 16, 2017, 9:57:35 AM5/16/17
to Ajax.org Cloud9 Editor (Ace)
Hi all, I'm trying to add a CSS editor to the backend of a WordPress theme I'm building.

I have ace properly (at least I'm 99% certain) registered and enqueued in WordPress and I have a script being called that should create the text editor:

var editor = ace.edit("customCSS");

is the line of code in the script.

However, on the page where the text editor should appear I am getting the following error message:


portfoliage.custom_css.js?ver=1:1 Uncaught ReferenceError: ace is not defined at portfoliage.custom_css.js?ver=1:1

How can I fix this?
Reply all
Reply to author
Forward
0 new messages