wangeditor
Version:
wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费
21 lines (20 loc) • 588 B
TypeScript
import Editor from '../editor';
export interface RegisterOptions {
intention: any;
config?: any;
}
export declare type pluginsListType = {
[key: string]: RegisterOptions;
};
/**
* 插件注册
* @param { string } name 插件名
* @param { RegisterOptions } options 插件配置
* @param { pluginsListType } memory 存储介质
*/
export declare function registerPlugin(name: string, options: RegisterOptions, memory: pluginsListType): void;
/**
* 插件初始化
* @param { Editor } editor 编辑器实例
*/
export default function initPlugins(editor: Editor): void;