Skip to content

CodeEditor

Available for fields of type text. It is a code editor that can be used to edit code.

<field name="code" widget="codeeditor" nolabel="1" height="300"
widget_props="{'lang': 'javascript'}"/>

In this case we have the content of the react-code of the CodeEditor widget :)

API

PropertyDescriptionTypeDefaultVersion
widget_propsObject with the following propertiesobject--

Widget Props

PropertyDescriptionTypeDefaultVersion
langLanguage of the codestring--