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

### instances

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

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

***

### pluginSystem

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

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

***

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

***

### ~~eventEmitter~~

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

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

Global event emitter

#### Deprecated

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

### uniqueUid()

**uniqueUid**(): `string`

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

Generate global unique uid

#### Returns

`string`

***

### extendLang()

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

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

Merge language packs into the global `lang` registry

`__proto__`, `constructor` and `prototype` are skipped on both levels, so a
pack parsed from untrusted JSON cannot reach `Object.prototype` (CWE-1321).

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

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