# Interface Plugin

interface Plugin {
tagHandler?: ((element, trumbowyg) => string | string[])[];
destroy?(): void;
init(trumbowyg): void;
shouldInit?(trumbowyg): boolean;
}

#####
Index

### Properties

tagHandler?

### Methods

destroy?
init
shouldInit?

## Properties

### `Optional` tagHandler

tagHandler?: ((element, trumbowyg) => string | string[])[]

#### Type declaration

- - (element, trumbowyg): string | string[]

  - #### Parameters

    - ##### element: HTMLElement

    - ##### trumbowyg: Trumbowyg

    #### Returns string | string[]

## Methods

### `Optional` destroy

- destroy(): void

- #### Returns void

### init

- init(trumbowyg): void

- #### Parameters

  - ##### trumbowyg: Trumbowyg

  #### Returns void

### `Optional` shouldInit

- shouldInit(trumbowyg): boolean

- #### Parameters

  - ##### trumbowyg: Trumbowyg

  #### Returns boolean