How to use AceEditor for content blocks in template

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

How to use AceEditor for content blocks in template

Post 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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1942
Joined: Mon Jan 29, 2007 4:47 pm

Re: How to use AceEditor for content blocks in template

Post 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.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
blackhawk
Power Poster
Power Poster
Posts: 280
Joined: Mon Oct 20, 2008 6:07 pm

Re: How to use AceEditor for content blocks in template

Post 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
Post Reply

Return to “The Lounge”