📄️ Render Node Data
Node data must be presented in the editor's content area as HTML structures. The renderElement method of a module achieves this by returning a VNode, which is then inserted into the editor’s content area to display the node data.
📄️ Generate HTML
Node data storage requires the data to be persisted as HTML structures; therefore, nodes must be converted into HTML. This is achieved by configuring the elementToHtml method of a module to return a string representing the corresponding HTML structure.
📄️ Generate Node
When the editor loads HTML, it needs to convert the HTML structure into editor nodes. This is accomplished by configuring the htmlToElement method of a module to return an element node, thereby achieving the conversion.
📄️ Plugin
- Since changes made within a plugin affect the editor globally, to prevent plugin pollution, the plugin configuration here should be specifically associated with the editor node linked to this module.
📄️ Generate SSML
To convert node data into an SSML structure, configure the serializer method of a module to return a string representing the SSML structure, thereby achieving the conversion.