@hanfy/plugin-removeformat
TypeScript icon, indicating that this package has built-in type declarations

2.10.12 • Public • Published

@hanfy/plugin-removeformat

移除样式插件

移除所有 mark 标签插件

移除所有 block 样式

安装

$ yarn add @hanfy/plugin-removeformat

添加到引擎

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

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

可选项

快捷键

默认快捷键为 mod+\

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

命令

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

Dependents (0)

Package Sidebar

Install

npm i @hanfy/plugin-removeformat

Weekly Downloads

3

Version

2.10.12

License

MIT

Unpacked Size

10.8 kB

Total Files

7

Last publish

Collaborators

  • hanfy_001
  • jzb520