Skip to main content

RichText

Container properties

All component configurations support Container properties at the first level.

Component properties

NameTypeDefaultSupports Variable PatternDescription
classNamestring✔️component's className
styleobjectcomponent style
toolBarPropsobjectproperties of wangeditor toolbar
editorPropsobjectwangeditor editor's properties
acceptProps{ img: string, video: string, file: string }
sizeLimitProps{ img: number, video: number, file: number }

JS API

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

NameTypeDescription
nodeHTML ElementThe root DOM element of the component
editorobjectEditor instance