Skip to main content

CodeEditor

Container properties

All component configurations support Container properties at the first level.

Component properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️component's className
styleobjectcomponent style
languagestringeditor language, language that supports monaco editor

All the remaining componentsProps will be passed to the component root element (div).

JS API

The interface obtained through formApi.getFieldApi() is as follows:

NameTypeDescription
nodeHTML ElementThe root DOM element of the component
editor() => objectMonaco Editor's editor instance object, Official documentation