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

### instances

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

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

***

### pluginSystem

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

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

***

### 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:59](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L59)

***

### ~~eventEmitter~~

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

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

Global event emitter

#### Deprecated

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

### uniqueUid()

**uniqueUid**(): `string`

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

Generate global unique uid

#### Returns

`string`

***

### extendLang()

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

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

#### 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:76](https://github.com/xdan/jodit/blob/main/src/core/global.ts#L76)

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`\]
