<![CDATA[ Ace Code Editor for MODX Revolution - Support Thread - My Forums]]> https://forums.modx.com/thread/?thread=81257 <![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=8#dis-post-555540 Quote from: Eminos at Oct 30, 2014, 12:34 PM
Is there a way to use Ace for Template Variables? (Ultimately Text Areas, not Rich Text)
That is THE reason I'm here on this thread. Would like to highlight a code samples I use in TV's. So I'd appreciate any input on how to do this.]]>
pboiko Nov 30, 2017, 07:50 AM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=8#dis-post-555540
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-554894
Is anyone planning to update the MODX port of Ace to the latest version so that it can handle PHP 7 syntax?]]>
paulbohman Oct 31, 2017, 03:14 PM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-554894
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-550045
Is it supposed to have a menu bar, is it supposed to do copy and replace, is it supposed to do word wrapping?

If so where are all these features hidden or how do you activate them?





]]>
markg Apr 11, 2017, 11:57 PM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-550045
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-549967
I mean how do you actually make it work as a code editor?

All it seems to do is make the code multicoloured. There's no editing functionality, menu or toolbar or anything. At least not in my installation.

Now it's not working at all. seems to have a mind of it's own

]]>
markg Apr 08, 2017, 04:36 AM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-549967
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-549817 just set system option use_editor to false (global usage)]]> jimsheppard Apr 01, 2017, 08:03 PM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-549817 <![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-548892
Anyone else?]]>
rgliberty Feb 22, 2017, 07:31 PM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-548892
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-547494
In assets/components/ace/modx.texteditor.js I changed:

In line 238:

//var acePath = MODx.config['assets_url'] + 'components/ace/ace'; // old one
var acePath = MODx.config['ace.assets_url'] + 'ace'; // new one



In line 305:

// net.loadScript(MODx.config['assets_url'] + 'emmet/emmet.js', function() { // old one
net.loadScript(MODx.config['ace.assets_url'] + 'emmet/emmet.js', function() { // new one


In line 859:

// url: MODx.config['assets_url'] + 'completions.php', // old one
url: MODx.config['ace.assets_url'] + 'completions.php', // new one

]]>
balihoo Dec 20, 2016, 10:35 AM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-547494
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-547471
It seems that ACE is using that setting to load it's files. Setting the namespace assets url has no effect.
How can I tell Ace to use the correct path for the files? "Correct" means the default one in this scenario.

https://www.managerdomain.tld/ctx/assets/setting/components/ace/ace/mode-css.js
https://www.managerdomain.tld/ctx/assets/setting/components/ace/ace/mode-javascript.js

etc.

edit: Even if I set the system setting ace.assets_url to the correct path, there are still 4 files loaded via ace.min.js with the wrong assets_url retreived from the ctx setting:

.../components/ace/ace/theme-chrome.js
.../components/ace/ace/mode-css.js
.../components/ace/emmet/emmet.js
.../components/ace/ace/mode-javascript.js]]>
balihoo Dec 19, 2016, 06:06 PM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-547471
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-545151
P.S. and please check your log file]]>
alex_dutch Sep 20, 2016, 07:03 PM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-545151
<![CDATA[Re: Ace Code Editor for MODX Revolution - Support Thread]]> https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-545141
I installed ACE 1.6.5-pl on modx-2.5.1-pl. But after install, then I was unable to create new document (by clicking icon document or plus sign in left panel). The screen is white. If inspected using Developer Tool on browser it says HTTP error 500. I already change System Setting for editor 'which_editor' to 'Ace' and 'use_editor' to 'No' and other combination value, but still no luck. Am I missing something? Please help.

Thank you.]]>
ghimawan Sep 20, 2016, 04:24 AM https://forums.modx.com/thread/81257/ace-code-editor-for-modx-revolution---support-thread?page=7#dis-post-545141