Page 1 of 1

How to use AceEditor for content blocks in template

Posted: Mon Nov 03, 2014 7:01 pm
by blackhawk
From my template, I tried the following to set my content block to use AceEditor...

Code: Select all

{ace_code mode='html' theme='twilight'}
{content block='code' label='Ace Block'}
{/ace_code}
...but it doesn't work...how do we get this module to work for content blocks?

thanks

Re: How to use AceEditor for content blocks in template

Posted: Mon Nov 03, 2014 7:15 pm
by Jo Morg
Read the module help page, particularly the Frontend tab.
This Module and Ace Script can also be used as a Frontend Syntaxhighlighter.
To make it work you have to include jQuery Framework, for example using CMSMS {cms_jquery} tag and as well include {ace_head} in your <head> section of the page.
There are further and more detailed instructions there.

Re: How to use AceEditor for content blocks in template

Posted: Wed Nov 05, 2014 2:44 pm
by blackhawk
I took a quick glance of the help page, but didn't look further in detail. Thank you for pointing out that the solution is buried in the help doc details...I will experiment with this today...

Thanks