Page tree
Skip to end of metadata
Go to start of metadata

CodeFieldDefinition renders a rich code editor.

This code field definition is part of the Magnolia 6 UI framework. The fully qualified class name is info.magnolia.ui.field.CodeFieldDefinition.

If you work with the Magnolia 5 UI framework, see Code field for Magnolia 5 UI instead.

Example code field definition

  label: Code editor
  $type: codeField
  height: 500
  language: freemarker

Code field properties


optional, default is 300

Height of the field. This property accepts an integer (to denote a value in pixels).



Language used for syntax highlighting. See the org.vaadin.aceeditor.AceMode enum for possible values.

See also Common field properties.

  • No labels