Skip to main content

editor

Example

 <editor
id="editor"
placeholder="write something..."
bindready="onEditorReady"
bindstatuschange="bindstatuschange"
bindinput="bindinput"
bindfocus="bindfocus"
bindblur="bindblur"
bindselectionupdate="bindselectionupdate"
></editor>

  • remark - sdk >= 4.7.0

Props

NameTypeDescriptionDefault
idstring
read-onlybooleanThe editor is readOnly or notfalse
placeholderstringThe editor placeholder
pluginsArray<{ name: string, config: Record<string, Any> }>the plugin setting 

Events

NameDescription
bindreadyTriggered when editor initialization is complete
bindinputTriggered when editor content changes ,
bindblurTriggered when editor blur
bindfocusTriggered when editor focus
bindstatuschangeadopt Context Method to change a style in the editor, returning a style already set for the selection
bindselectionupdatewhen the editor selection update
bindpastewhen paste content from clipboard