CodeFieldDefinition renders a code editor field.

class: info.magnolia.ui.form.field.definition.CodeFieldDefinition


Text field properties

Simple code field definition. 

form:
  tabs:
    - name: tabCode
      label: Code
      fields:
        - name: code
          class: info.magnolia.ui.form.field.definition.CodeFieldDefinition
          language: freemarker
          label: Enter code

Node name

Value

 form


 tabs


 tabCode


 fields


 code


 class

info.magnolia.ui.form.field.definition.CodeFieldDefinition

 label

Code

 language

freemarker

You can use  common field properties  and the following properties in a code field definition:

Properties:

<field name>Name of field.

language

optional

Language used for syntax highlighting.

fileNameProperty

optional

Defines the Vaadin propertyId under which the file name is exposed by the current form Item .

height

optional, default is 300

Height in pixels of the editor.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels