CommandManager(base, optionsopt)

Class CommandManager

new CommandManager(base, optionsopt)

Parameters:
Name Type Attributes Default Description
base ToastUIEditor

nedInstance

options object <optional>
{}

option object

Properties
Name Type Attributes Default Description
useCommandShortcut boolean <optional>
true

execute command with keyMap

Methods

static command(type, props) → {*}

Create command by given editor type and property object

Parameters:
Name Type Description
type string

Command type

props Object

Property

Returns:
*

addCommand(command) → {Command}

Add command

Parameters:
Name Type Description
command Command

Command instance

Returns:
Command -

Command

exec(name) → {*}

Execute command

Parameters:
Name Type Description
name String

Command name

...args *

Command argument

Returns:
*