PluginSystem

plugin.PluginSystem

Jodit plugin system

Example

Jodit.plugins.add('emoji2', {
  init() {
   alert('emoji Inited2')
  },
  destruct() {}
});

Implements

constructor

new PluginSystem(): PluginSystem

Returns

PluginSystem

add

add(name, plugin): void

Add plugin in store

Parameters

Name Type
name string
plugin PluginType

Returns

void

Implementation of

IPluginSystem.add

Defined in

src/core/plugin/plugin-system.ts#52


get

get(name): void | PluginType

Get plugin from store

Parameters

Name Type
name string

Returns

void | PluginType

Implementation of

IPluginSystem.get

Defined in

src/core/plugin/plugin-system.ts#60


remove

remove(name): void

Remove plugin from store

Parameters

Name Type
name string

Returns

void

Implementation of

IPluginSystem.remove

Defined in

src/core/plugin/plugin-system.ts#67


__init

__init(jodit): void

Public method for async init all plugins

Parameters

Name Type
jodit IJodit

Returns

void

Defined in

src/core/plugin/plugin-system.ts#88


wait

wait(name): Promise<void>

Returns the promise to wait for the plugin to load.

Parameters

Name Type
name string

Returns

Promise<void>

Implementation of

IPluginSystem.wait

Defined in

jodit/src/core/plugin/plugin-system.ts:160