ComponentManager

ComponentManager

Constructor

new ComponentManager(editor)

Constructor

Parameters:
Name Type Description
editor MarkdownEditor | WysiwygEditor

Editor instance

Methods

static CommandManager.command(type, props) → {*}

Create command by given editor type and property object

Parameters:
Name Type Description
type string

Command type

props Object

Property

Returns:
*

addManager(nameOrConstructor, ManagerConstructoropt)

addManager
Add manager

Parameters:
Name Type Attributes Description
nameOrConstructor string | function

Manager name or constructor

ManagerConstructor function <optional>

Constructor

getManager(name) → {object}

getManager
Get manager by manager name

Parameters:
Name Type Description
name string

Manager name

Returns:
object -

manager

removeManager(name)

Remove Manager.

Parameters:
Name Type Description
name string

manager name