An Ace Editor field type for Craft CMS
- Move the 'acefreely' folder into your Craft plugins folder.
- Go to Settings > Plugins in the Craft control panel.
- Install the Ace Freely plugin.
- You can now create Ace Freely fields from within Settings > Fields.
There are a few different ways to use Ace Freely depending on how you want to output your content.
Wrap the field's value in a <pre>
element to output a code sample.
<pre>{{ entry.aceFreelyFieldHandle }}</pre>
Pass HTML, CSS, or JavaScript content through Twig's raw filter.
{{ entry.aceFreelyFieldHandle | raw }}
Pass Markdown content through Craft's markdown filter.
{{ entry.aceFreelyFieldHandle | markdown }}
Pass Twig content through Ace Freely's ace_parse filter.
{{ entry.aceFreelyFieldHandle | ace_parse }}