Skip to main content
Version: Next

Configuration

This section provides a comprehensive overview of the detailed configuration object config for the editor component. This configuration object encompasses all customizable properties of the editor, forming the core foundation for personalized editing experiences. By flexibly adjusting config, you can precisely shape the editor's behavior and appearance to meet diverse usage requirements.

EditorConfig Attributes

PropertyDescriptionTypeDefault
databaseNameDatabase name used when storing editor content in IndexedDB.stringdefault
scrollWhether the editor content allows scrolling via scrollbar.
Set to false: No scrollbar appears; editor height increases as content grows.
Set to true: Fixed editor height; scrollbar appears when content exceeds editor height. Requires setting style.height or style.maxHeight (must not be undefined).
booleantrue
placeholderPlaceholder text displayed when editor content is empty.string-
readOnlyWhether the editor is read-only.
Set to true to disable editing; otherwise, editing is allowed.
booleanfalse
autoFocusWhether the editor automatically gains focus after creation and mounting.
Set to true to auto-focus on mount; otherwise, focus requires user interaction.
booleanfalse
maxLengthMaximum allowed input length for editor content.
Input continues beyond max length but triggers maxLength event.
number-
animationAnimation configuration for editor interactions. See here for detailed properties.EditorAnimationConfig-
htmlConfiguration for editor content display and storage. See here for detailed properties.EditorHtmlConfig-
styleStyling configuration for the editor. See here for detailed properties.EditorStyleConfig-
toolbarToolbar configuration. See here for detailed properties.EditorToolbarConfig-
pluginsGlobal plugin configuration for the editor.
Array<Function>
-
modulesEditor module configuration. See here for detailed properties.Array<EditorModule>-
normalizersMethods used for normalizing SSML code during editor processing.
Array<EditorNormalization>
-

EditorAnimationConfig Attributes

PropertyDescriptionTypeDefault
zoomWhether to apply zoom effect to mark elements when they receive hover events.booleantrue
grayscaleWhether to reduce opacity of other nodes (excluding the hovered mark element's node) when a mark element receives hover events.booleantrue

EditorHtmlConfig Attributes

PropertyDescriptionTypeDefault
storageTypeEditor content storage type.
StorageType
StorageType.NONE
storeNameDatabase name used when storing editor content in local IndexedDB (local storage).stringhtml
autoSaveWhether to enable automatic content saving.booleantrue
autoSaveWaitAutomatic save interval (in ms) when content changes.
(triggers via throttling after content modification).
number5000
readerMethod to retrieve content from external storage.
Function
Promise.resolve('')
saverMethod to save content to external storage.
Function
Promise.resolve(true)

EditorStyleConfig Attributes

PropertyDescriptionTypeDefault
heightEditor heightstring-
minHeightMinimum editor heightstring300px
maxHeightMaximum editor heightstring500px

EditorToolbarConfig Attributes

PropertyDescriptionTypeDefault
alignAlignment method for toolbar buttons.
RowContainerAlign
RowContainerAlign.CENTER
styleStyling configuration for the toolbar.StyleValue-

EditorFooterConfig Attributes

PropertyDescriptionTypeDefault
alignAlignment method for footer buttons.
RowContainerAlign
RowContainerAlign.CENTER
styleStyling configuration for the footer.StyleValue-

EditorMenuConfig Attributes

PropertyDescriptionTypeDefault
* componentVue component used for toolbar buttonsComponent-
propsProps passed to the button componentRecord<string, any>-

Note: Parameters marked with * are required.

EditorModule Attributes

PropertyDescriptionTypeDefault
* nameModule name (used to distinguish modules; duplicate names won't be registered).string-
* typeEditor node type associated with this module.string-
renderElementMethod to render node content in editor area (HTML).
Function
-
elementToHtmlMethod to convert node to HTML.
Function
-
htmlToElementMethod to convert HTML to node.
Function
-
pluginPlugin configuration (must relate to this module's editor node).
Function
-
serializerMethod to convert node to SSML.
Function
-

Note: Parameters marked with * are required.