danyaPostfactum / modx-ace

ACE editor integration into MODx
24 stars 23 forks source link

Issue loading when compress_js is on? #42

Open Mark-H opened 9 years ago

Mark-H commented 9 years ago

Hiya @danyaPostfactum!

It seems that in some installs, the latest version (1.5.0) of Ace can fail to load the syntax definitions when javascript compression is on. It somehow gets the URL wrong which results in a 404 and no syntax highlighting.

Failed to load resource: the server responded with a status of 404 (Not Found)

/manager/mode-html.js Failed to load resource: the server responded with a status of 404 (Not Found) /manager/mode-html.js This happened on a client site using ContentBlocks. It's possible the difference in instantiating Ace in contentblocks is the problem, as that doesn't use extjs, but simply calls ace.edit. It only happens when the Ace package is installed, and not when using the locally included ace assets.