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

2.10.5 • Public • Published

@hanfy/plugin-bold

加粗样式插件

安装

$ yarn add @hanfy/plugin-bold

添加到引擎

import Engine, { EngineInterface } from '@hanfy/engine';
import Bold from '@hanfy/plugin-bold';

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

可选项

快捷键

默认快捷键为 mod+b,以数组形式传入多个快捷键

//快捷键,
hotkey?: string | Array<string>;

//使用配置
new Engine(...,{
    config:{
        "bold":{
            //修改快捷键
            hotkey:"快捷键"
        }
    }
 })

命令

engine.command.execute('bold');
//使用 command 执行查询当前状态,返回 boolean | undefined
engine.command.queryState('bold');

Readme

Keywords

none

Package Sidebar

Install

npm i @hanfy/plugin-bold

Weekly Downloads

2

Version

2.10.5

License

MIT

Unpacked Size

11.8 kB

Total Files

7

Last publish

Collaborators

  • hanfy_001
  • jzb520