1.0.2 • Published 10 months ago

@xiehy/plugin-removeformat v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@xiehy/plugin-removeformat

移除样式插件

移除所有 mark 标签插件

移除所有 block 样式

安装

$ yarn add @xiehy/plugin-removeformat

添加到引擎

import Engine, { EngineInterface } from '@xiehy/engine';
import Removeformat from '@xiehy/plugin-removeformat';

new Engine(...,{ plugins:[Removeformat] })

可选项

快捷键

默认快捷键为 mod+\

//快捷键
hotkey?: string | Array<string>;
//使用配置
new Engine(...,{
    config:{
        "redo":{
            //修改快捷键
            hotkey:"快捷键"
        }
    }
 })

命令

//使用 command 执行插件
engine.command.execute('removeformat');
1.0.2

10 months ago