Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Free
  5. ace

Field ace

Version: Free.

Why this type

Full control over HTML, CSS, or JSON. Mode via mode (html, css, javascript, json). No WYSIWYG when you need exact markup.

When to use

  • Custom section markup maintained by a developer
  • SVG snippet or inline styles
  • JSON or config the chunk parses itself

Tips

Content editors usually prefer richtext. Do not escape HTML in the chunk when you output markup intentionally.

Similar types

Schema

json
{
  "name": "markup",
  "type": "ace",
  "label": "Markup",
  "mode": "html",
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Source code string.

Section data

Key markup in the section data:

json
{
  "markup": "<section class=\"hero\">\n\n</section>"
}

Chunk example

fenom
{$markup}

Common properties

For fields with name that are stored in the section data:

KeyTypeRoleCMP
tabstringGroup subtitle in the inspectoryes
width25–100Field width as % of the row (flex)yes
descriptionstringHint under the labelyes
defaultanyInitial value for a new sectionyes
activeboolfalse hides the field in the inspectoryes
requiredboolRequired on publish (draft still saves)yes

See fields overview.

See also