mirror of https://gitee.com/godoos/godoos.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
509 B
509 B
Custom Plugin
::: tip Official plugin: https://github.com/Hufe921/canvas-editor-plugin :::
Write a Plugin
export function myPlugin(editor: Editor, options?: Option) {
// 1. update,see more:src/plugins/copy
editor.command.updateFunction = () => {}
// 2. add,see more:src/plugins/markdown
editor.command.addFunction = () => {}
// 3. listener, eventbus, shortcut, contextmenu, override...
}
Use Plugin
instance.use(myPlugin, options?: Option)