Bold style plugin
$ yarn add @aomao/plugin-bold
Add to engine
import Engine, {EngineInterface} from'@aomao/engine';import Bold from'@aomao/plugin-bold';new Engine(...,{ plugins:[Bold] })
The default shortcut key is mod+b
, and multiple shortcut keys are passed in as an array
//hotkey,hotkey?: string | Array<string>;//Use configurationnew Engine(...,{config:{"bold":{//Modify shortcut keyshotkey: "shortcut key"}}})
engine.command.execute('bold');//Use command to execute query current status, return boolean | undefinedengine.command.queryState('bold');