Plugin
tip
- 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.
During module usage, various methods of the editor’s BaseEditor need to be invoked. At the same time, the module’s logic often requires overriding these BaseEditor methods. This can be achieved by configuring the plugin method of a module to override BaseEditor methods.
For example, the Attribute module configures its plugin method to set both isInline and isVoid properties of the Attribute node to false. For details on the Attribute module’s plugin implementation, please refer to the source code .
For detailed usage of plugins, please refer to Global Plugin.