IPlugin

types.IPlugin

Type parameters

Name Type
T extends IViewBased = IViewBased

Implements

Implemented by

constructor

new IPlugin<T>(jodit?): IPlugin<T>

Type parameters

Name Type
T extends IViewBased<IViewOptions> = IViewBased<IViewOptions>

Parameters

Name Type
jodit? T

Returns

IPlugin<T>

Defined in

src/types/plugin.d.ts#48

requires

Static Optional requires: string[]

Defined in

src/types/plugin.d.ts#25


hasStyle

Optional hasStyle: boolean

Defined in

src/types/plugin.d.ts#27


styles

Optional styles: string

Additional plugin styles can be written simply as inline styles

class A extends Jodit.modules.Plugin {
  styles = 'h1{color: red}';
}

Will only be applied if the plugin is activated

Defined in

src/types/plugin.d.ts#38


buttons

Optional buttons: IPluginButton[]

Plugin buttons

Defined in

src/types/plugin.d.ts#43

init

init(jodit): void

Parameters

Name Type
jodit T

Returns

void

Implementation of

IInitable.init

Defined in

src/types/plugin.d.ts#45


destruct

destruct(jodit?): void

Parameters

Name Type
jodit? T

Returns

void

Implementation of

IDestructible.destruct

Defined in

jodit/src/types/plugin.d.ts:46