am-editor11212/docs/plugin/plugin-removeformat.md

730 B

@aomao/plugin-removeformat

Remove style plugin

Remove all mark tag plugins

Remove all block styles

Installation

$ yarn add @aomao/plugin-removeformat

Add to engine

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

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

Optional

hot key

The default shortcut key is mod+\

//hot key
hotkey?: string | Array<string>;
//Use configuration
new Engine(...,{
     config:{
         "redo":{
             //Modify shortcut keys
             hotkey: "shortcut key"
         }
     }
  })

Command

//Use command to execute the plugin
engine.command.execute('removeformat');