Skip to main content
Version: Next

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.

For example, the Attribute module converts nodes into the element node shown below by configuring its htmlToElement method. For details on the Attribute module’s htmlToElement implementation, please refer to the source code .