---
title: "Constants"
---
# Constants

You can use Jodit constants in your code
```javascript
import { Jodit } from 'jodit';
console.log(Jodit.constants.IS_IE);
console.log(Jodit.constants.APP_VERSION);
```

### APP\_VERSION

`const` **APP\_VERSION**: `string`

Defined in: [src/core/constants.ts:20](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L20)

***

### ES

`const` **ES**: `"es5"` \| `"es2015"` \| `"es2018"` \| `"es2021"`

Defined in: [src/core/constants.ts:22](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L22)

***

### IS\_ES\_MODERN

`const` **IS\_ES\_MODERN**: `boolean`

Defined in: [src/core/constants.ts:23](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L23)

***

### IS\_ES\_NEXT

`const` **IS\_ES\_NEXT**: `boolean`

Defined in: [src/core/constants.ts:24](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L24)

***

### IS\_PROD

`const` **IS\_PROD**: `boolean`

Defined in: [src/core/constants.ts:25](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L25)

***

### IS\_TEST

**IS\_TEST**: `boolean`

Defined in: [src/core/constants.ts:26](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L26)

***

### FAT\_MODE

`const` **FAT\_MODE**: `boolean`

Defined in: [src/core/constants.ts:27](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L27)

***

### HOMEPAGE

`const` **HOMEPAGE**: `string`

Defined in: [src/core/constants.ts:28](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L28)

***

### TOKENS

`const` **TOKENS**: [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type)\<`string`, `string`\>

Defined in: [src/core/constants.ts:30](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L30)

***

### INVISIBLE\_SPACE

`const` **INVISIBLE\_SPACE**: `"﻿"` = '\uFEFF'

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

***

### NBSP\_SPACE

`const` **NBSP\_SPACE**: `" "` = '\u00A0'

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

***

### globalWindow

`const` **globalWindow**: *typeof* `window`

Defined in: [src/core/constants.ts:42](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L42)

***

### globalDocument

`const` **globalDocument**: [`Document`](https://developer.mozilla.org/docs/Web/API/Document)

Defined in: [src/core/constants.ts:45](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L45)

***

### IS\_BLOCK

`const` **IS\_BLOCK**: [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Defined in: [src/core/constants.ts:50](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L50)

***

### IS\_INLINE

`const` **IS\_INLINE**: [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Defined in: [src/core/constants.ts:53](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L53)

***

### LIST\_TAGS

`const` **LIST\_TAGS**: [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<`"ul"` \| `"ol"`\>

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

***

### INSEPARABLE\_TAGS

`const` **INSEPARABLE\_TAGS**: [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<[`HTMLTagNames`](./types.html#htmltagnames)\>

Defined in: [src/core/constants.ts:69](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L69)

***

### NO\_EMPTY\_TAGS

`const` **NO\_EMPTY\_TAGS**: [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<[`HTMLTagNames`](./types.html#htmltagnames)\>

Defined in: [src/core/constants.ts:75](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L75)

***

### KEY\_META

`const` **KEY\_META**: `"Meta"` = `'Meta'`

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

***

### KEY\_BACKSPACE

`const` **KEY\_BACKSPACE**: `"Backspace"` = `'Backspace'`

Defined in: [src/core/constants.ts:78](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L78)

***

### KEY\_TAB

`const` **KEY\_TAB**: `"Tab"` = `'Tab'`

Defined in: [src/core/constants.ts:79](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L79)

***

### KEY\_ENTER

`const` **KEY\_ENTER**: `"Enter"` = `'Enter'`

Defined in: [src/core/constants.ts:80](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L80)

***

### KEY\_ESC

`const` **KEY\_ESC**: `"Escape"` = `'Escape'`

Defined in: [src/core/constants.ts:81](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L81)

***

### KEY\_ALT

`const` **KEY\_ALT**: `"Alt"` = `'Alt'`

Defined in: [src/core/constants.ts:82](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L82)

***

### KEY\_LEFT

`const` **KEY\_LEFT**: `"ArrowLeft"` = `'ArrowLeft'`

Defined in: [src/core/constants.ts:84](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L84)

***

### KEY\_UP

`const` **KEY\_UP**: `"ArrowUp"` = `'ArrowUp'`

Defined in: [src/core/constants.ts:85](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L85)

***

### KEY\_RIGHT

`const` **KEY\_RIGHT**: `"ArrowRight"` = `'ArrowRight'`

Defined in: [src/core/constants.ts:86](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L86)

***

### KEY\_DOWN

`const` **KEY\_DOWN**: `"ArrowDown"` = `'ArrowDown'`

Defined in: [src/core/constants.ts:87](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L87)

***

### KEY\_SPACE

`const` **KEY\_SPACE**: `"Space"` = `'Space'`

Defined in: [src/core/constants.ts:88](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L88)

***

### KEY\_DELETE

`const` **KEY\_DELETE**: `"Delete"` = `'Delete'`

Defined in: [src/core/constants.ts:90](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L90)

***

### KEY\_F3

`const` **KEY\_F3**: `"F3"` = `'F3'`

Defined in: [src/core/constants.ts:92](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L92)

***

### NEARBY

`const` **NEARBY**: `5` = `5`

Defined in: [src/core/constants.ts:94](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L94)

***

### ACCURACY

`const` **ACCURACY**: `10` = `10`

Defined in: [src/core/constants.ts:95](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L95)

***

### COMMAND\_KEYS

`const` **COMMAND\_KEYS**: `string`[]

Defined in: [src/core/constants.ts:97](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L97)

***

### BR

`const` **BR**: `"br"` = `'br'`

Defined in: [src/core/constants.ts:111](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L111)

***

### PARAGRAPH

`const` **PARAGRAPH**: `"p"` = `'p'`

Defined in: [src/core/constants.ts:112](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L112)

***

### MODE\_WYSIWYG

`const` **MODE\_WYSIWYG**: `1` = `1`

Defined in: [src/core/constants.ts:117](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L117)

WYSIWYG editor mode

***

### MODE\_SOURCE

`const` **MODE\_SOURCE**: `2` = `2`

Defined in: [src/core/constants.ts:122](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L122)

html editor mode

***

### MODE\_SPLIT

`const` **MODE\_SPLIT**: `3` = `3`

Defined in: [src/core/constants.ts:128](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L128)

Source code editor and HTML editor both like

#### See

http://getuikit.com/docs/htmleditor.html|this

***

### IS\_IE

`const` **IS\_IE**: `boolean`

Defined in: [src/core/constants.ts:133](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L133)

Is Internet Explorer

***

### TEXT\_PLAIN

`const` **TEXT\_PLAIN**: `"text"` \| `"text/plain"`

Defined in: [src/core/constants.ts:141](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L141)

For IE11 it will be 'text'. Need for dataTransfer.setData

***

### TEXT\_HTML

`const` **TEXT\_HTML**: `"html"` \| `"text/html"`

Defined in: [src/core/constants.ts:142](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L142)

***

### TEXT\_RTF

`const` **TEXT\_RTF**: `"rtf"` \| `"text/rtf"`

Defined in: [src/core/constants.ts:143](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L143)

***

### MARKER\_CLASS

`const` **MARKER\_CLASS**: `"jodit-selection_marker"` = `'jodit-selection_marker'`

Defined in: [src/core/constants.ts:145](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L145)

***

### EMULATE\_DBLCLICK\_TIMEOUT

`const` **EMULATE\_DBLCLICK\_TIMEOUT**: `300` = `300`

Defined in: [src/core/constants.ts:147](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L147)

***

### INSERT\_AS\_HTML

`const` **INSERT\_AS\_HTML**: `"insert_as_html"` = `'insert_as_html'`

Defined in: [src/core/constants.ts:160](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L160)

Paste the copied text as HTML, all content will be pasted exactly as it was on the clipboard.
So how would you copy its code directly into the source document.
```
<h1 style="color:red">test</h1>
```
Will be inserted into the document as
```
<h1 style="color:red">test</h1>
```

***

### INSERT\_CLEAR\_HTML

`const` **INSERT\_CLEAR\_HTML**: `"insert_clear_html"` = `'insert_clear_html'`

Defined in: [src/core/constants.ts:172](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L172)

Same as [[INSERT_AS_HTML]], but content will be stripped of extra styles and empty tags
```html
<h1 style="color:red">test</h1>
```
Will be inserted into the document as
```html
<h1>test</h1>
```

***

### INSERT\_AS\_TEXT

`const` **INSERT\_AS\_TEXT**: `"insert_as_text"` = `'insert_as_text'`

Defined in: [src/core/constants.ts:184](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L184)

The contents of the clipboard will be pasted into the document as plain text, i.e. all tags will be displayed as text.
```html
<h1>test</h1>
```
Will be inserted into the document as
```html
&gt;&lt;h1&gt;test&lt;/h1&gt;
```

***

### INSERT\_ONLY\_TEXT

`const` **INSERT\_ONLY\_TEXT**: `"insert_only_text"` = `'insert_only_text'`

Defined in: [src/core/constants.ts:196](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L196)

All tags will be stripped:
```html
<h1>test</h1>
```
Will be inserted into the document as
```html
test
```

***

### SAFE\_COUNT\_CHANGE\_CALL

`const` **SAFE\_COUNT\_CHANGE\_CALL**: `10` = `10`

Defined in: [src/core/constants.ts:198](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L198)

***

### IS\_MAC

`const` **IS\_MAC**: `boolean`

Defined in: [src/core/constants.ts:200](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L200)

***

### KEY\_ALIASES

`const` **KEY\_ALIASES**: [`IDictionary`](./types.html#idictionary)\<`string`\>

Defined in: [src/core/constants.ts:204](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L204)

***

### BASE\_PATH

`const` **BASE\_PATH**: `string` = `basePath`

Defined in: [src/core/constants.ts:283](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L283)

Path to the current script

***

### BASE\_PATH\_IS\_MIN

`const` **BASE\_PATH\_IS\_MIN**: `boolean` = `isMin`

Defined in: [src/core/constants.ts:288](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L288)

Current script is minified

***

### TEMP\_ATTR

`const` **TEMP\_ATTR**: `"data-jodit-temp"` = `'data-jodit-temp'`

Defined in: [src/core/constants.ts:290](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L290)

***

### lang

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

Defined in: [src/core/constants.ts:292](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L292)

***

### CLIPBOARD\_ID

`const` **CLIPBOARD\_ID**: `"clipboard"` = `'clipboard'`

Defined in: [src/core/constants.ts:294](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L294)

***

### SOURCE\_CONSUMER

`const` **SOURCE\_CONSUMER**: `"source-consumer"` = `'source-consumer'`

Defined in: [src/core/constants.ts:295](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L295)

***

### PASSIVE\_EVENTS

`const` **PASSIVE\_EVENTS**: [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<`string`\>

Defined in: [src/core/constants.ts:297](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L297)

### SET\_TEST()

**SET\_TEST**(): `boolean`

Defined in: [src/core/constants.ts:29](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L29)

#### Returns

`boolean`

***

### INVISIBLE\_SPACE\_REG\_EXP()

**INVISIBLE\_SPACE\_REG\_EXP**(): [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Defined in: [src/core/constants.ts:34](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L34)

#### Returns

[`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

***

### INVISIBLE\_SPACE\_REG\_EXP\_END()

**INVISIBLE\_SPACE\_REG\_EXP\_END**(): [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

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

#### Returns

[`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

***

### INVISIBLE\_SPACE\_REG\_EXP\_START()

**INVISIBLE\_SPACE\_REG\_EXP\_START**(): [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Defined in: [src/core/constants.ts:36](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L36)

#### Returns

[`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

***

### SPACE\_REG\_EXP()

**SPACE\_REG\_EXP**(): [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Defined in: [src/core/constants.ts:38](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L38)

#### Returns

[`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

***

### SPACE\_REG\_EXP\_START()

**SPACE\_REG\_EXP\_START**(): [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

Defined in: [src/core/constants.ts:39](https://github.com/xdan/jodit/blob/main/src/core/constants.ts#L39)

#### Returns

[`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

***

### SPACE\_REG\_EXP\_END()

**SPACE\_REG\_EXP\_END**(): [`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)

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

#### Returns

[`RegExp`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp)
