feat: add plugin interface
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import Editor from '..'
|
||||
|
||||
export type PluginFunction<Options> = (editor: Editor, options?: Options) => any;
|
||||
|
||||
export type UsePlugin = <Options>(pluginFunction: PluginFunction<Options>, options?: Options) => void;
|
||||
Reference in New Issue
Block a user