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

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

Returns:
*