---
title: "Global"
---
# Global

### instances

`const` **instances**: [`IDictionary`](./types.html#idictionary)\<[`IJodit`](../interfaces/types.IJodit.html)\> = `{}`

Defined in: [src/core/global.ts:33](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L33)

***

### pluginSystem

`const` **pluginSystem**: [`PluginSystem`](../classes/plugin.PluginSystem.html)

Defined in: [src/core/global.ts:56](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L56)

***

### modules

`const` **modules**: [`IDictionary`](./types.html#idictionary)\<[`Function`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function)\> = `{}`

Defined in: [src/core/global.ts:60](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L60)

***

### ~~eventEmitter~~

`const` **eventEmitter**: [`EventEmitter`](../classes/event_emitter.EventEmitter.html) = `globalEventEmitter`

Defined in: [src/core/global.ts:182](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L182)

Global event emitter

#### Deprecated

use `import { eventEmitter } from 'jodit/core/event-emitter/global';`

### uniqueUid()

**uniqueUid**(): `string`

Defined in: [src/core/global.ts:41](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L41)

Generate global unique uid

#### Returns

`string`

***

### extendLang()

**extendLang**(`langs`): `void`

Defined in: [src/core/global.ts:62](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L62)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `langs` | [`IDictionary`](./types.html#idictionary) |

#### Returns

`void`

***

### getContainer()

**getContainer**\<`T`\>(`jodit`, `classFunc?`, `tag?`, `createInsideEditor?`): `HTMLElementTagNameMap`\[`T`\]

Defined in: [src/core/global.ts:77](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L77)

Create unique box(HTMLCotainer) and remove it after destroy

#### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` *extends* [`HTMLTagNames`](./types.html#htmltagnames) | [`HTMLTagNames`](./types.html#htmltagnames) |

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `jodit` | [`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\> \| [`IViewComponent`](../interfaces/types.IViewComponent.html)\<[`IViewBased`](../interfaces/types.IViewBased.html)\<[`IViewOptions`](../interfaces/types.IViewOptions.html)\>\> | `undefined` |
| `classFunc?` | `string` \| [`Function`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function) | `undefined` |
| `tag?` | `T` | `...` |
| `createInsideEditor?` | `boolean` | `false` |

#### Returns

`HTMLElementTagNameMap`\[`T`\]
