---
title: "Dom"
---
# Dom

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

Module for working with DOM

### detach()

`static` **detach**(`node`): `void`

Defined in: [src/core/dom/dom.ts:64](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L64)

Remove all content from element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`VNode`](../interfaces/types.VNode.html)\> |

#### Returns

`void`

***

### wrapNextInline()

`static` **wrapNextInline**(`current`, `tag`, `editor`): [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

Defined in: [src/core/dom/dom.ts:73](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L73)

Wrap all inline next siblings

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `current` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `tag` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| [`HTMLTagNames`](../modules/types.html#htmltagnames) |
| `editor` | [`IJodit`](../interfaces/types.IJodit.html) |

#### Returns

[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

***

### wrapInline()

`static` **wrapInline**(`current`, `tag`, `editor`): [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

Defined in: [src/core/dom/dom.ts:132](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L132)

Wrap all inline siblings

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `current` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `tag` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| [`HTMLTagNames`](../modules/types.html#htmltagnames) |
| `editor` | [`IJodit`](../interfaces/types.IJodit.html) |

#### Returns

[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)

***

### wrap()

Wrap node inside another node

#### Call Signature

`static` **wrap**\<`K`\>(`current`, `tag`, `create`): `HTMLElementTagNameMap`\[`K`\]

Defined in: [src/core/dom/dom.ts:168](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L168)

##### Type Parameters

| Type Parameter |
| ------ |
| `K` *extends* [`HTMLTagNames`](../modules/types.html#htmltagnames) |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `current` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| [`Range`](https://developer.mozilla.org/docs/Web/API/Range) |
| `tag` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `create` | [`ICreate`](../interfaces/types.ICreate.html) |

##### Returns

`HTMLElementTagNameMap`\[`K`\]

#### Call Signature

`static` **wrap**\<`K`\>(`current`, `tag`, `create`): `HTMLElementTagNameMap`\[`K`\]

Defined in: [src/core/dom/dom.ts:174](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L174)

##### Type Parameters

| Type Parameter |
| ------ |
| `K` *extends* [`HTMLTagNames`](../modules/types.html#htmltagnames) |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `current` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| [`Range`](https://developer.mozilla.org/docs/Web/API/Range) |
| `tag` | `K` |
| `create` | [`ICreate`](../interfaces/types.ICreate.html) |

##### Returns

`HTMLElementTagNameMap`\[`K`\]

***

### unwrap()

`static` **unwrap**(`node`): `void`

Defined in: [src/core/dom/dom.ts:209](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L209)

Remove parent of node and insert this node instead that parent

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`VNode`](../interfaces/types.VNode.html) |

#### Returns

`void`

***

### between()

`static` **between**(`start`, `end`, `callback`): `void`

Defined in: [src/core/dom/dom.ts:228](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L228)

Call callback for all nodes between `start` and `end` in document order
(`start` and `end` are not included). Iteration stops when the callback returns `true`.

`end` must be positioned after `start` in the document (e.g. selection markers),
otherwise iteration will stop only at the end of the tree.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `start` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `end` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `callback` | (`node`) => `boolean` \| `void` |

#### Returns

`void`

***

#### Call Signature

`static` **replace**\<`T`\>(`elm`, `newTagName`, `create`, `withAttributes?`, `notMoveContent?`): `T`

Defined in: [src/core/dom/dom.ts:276](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L276)

Replace one tag to another transfer content

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elm` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | The element that needs to be replaced by new |
| `newTagName` | [`HTMLTagNames`](../modules/types.html#htmltagnames) | tag name for which will change `elm` |
| `create` | [`ICreate`](../interfaces/types.ICreate.html) | - |
| `withAttributes?` | `boolean` | If true move tag's attributes |
| `notMoveContent?` | `boolean` | false - Move content from elm to newTagName |

##### Returns

`T`

##### Example

```javascript
Jodit.modules.Dom.replace(
  parent.editor.getElementsByTagName('span')[0],
  'p',
  parent.createInside
);
// Replace the first <span> element to the <p>
```

#### Call Signature

`static` **replace**\<`T`\>(`elm`, `newElement`, `create?`, `withAttributes?`, `notMoveContent?`): `T`

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

Replace one tag to another transfer content

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elm` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | The element that needs to be replaced by new |
| `newElement` | `T` | - |
| `create?` | [`ICreate`](../interfaces/types.ICreate.html) | - |
| `withAttributes?` | `boolean` | If true move tag's attributes |
| `notMoveContent?` | `boolean` | false - Move content from elm to newTagName |

##### Returns

`T`

##### Example

```javascript
Jodit.modules.Dom.replace(
  parent.editor.getElementsByTagName('span')[0],
  'p',
  parent.createInside
);
// Replace the first <span> element to the <p>
```

#### Call Signature

`static` **replace**\<`T`\>(`elm`, `html`, `create`, `withAttributes?`, `notMoveContent?`): `T`

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

Replace one tag to another transfer content

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elm` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | The element that needs to be replaced by new |
| `html` | `string` | - |
| `create` | [`ICreate`](../interfaces/types.ICreate.html) | - |
| `withAttributes?` | `boolean` | If true move tag's attributes |
| `notMoveContent?` | `boolean` | false - Move content from elm to newTagName |

##### Returns

`T`

##### Example

```javascript
Jodit.modules.Dom.replace(
  parent.editor.getElementsByTagName('span')[0],
  'p',
  parent.createInside
);
// Replace the first <span> element to the <p>
```

#### Call Signature

`static` **replace**\<`T`\>(`elm`, `newTagNameOrElement`, `create`, `withAttributes?`, `notMoveContent?`): `T`

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

Replace one tag to another transfer content

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

##### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `elm` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | The element that needs to be replaced by new |
| `newTagNameOrElement` | [`HTMLTagNames`](../modules/types.html#htmltagnames) \| `T` | - |
| `create` | [`ICreate`](../interfaces/types.ICreate.html) | - |
| `withAttributes?` | `boolean` | If true move tag's attributes |
| `notMoveContent?` | `boolean` | false - Move content from elm to newTagName |

##### Returns

`T`

##### Example

```javascript
Jodit.modules.Dom.replace(
  parent.editor.getElementsByTagName('span')[0],
  'p',
  parent.createInside
);
// Replace the first <span> element to the <p>
```

***

### isEmptyTextNode()

`static` **isEmptyTextNode**(`node`): `boolean`

Defined in: [src/core/dom/dom.ts:349](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L349)

Checks whether the Node text and blank (in this case it may contain invisible auxiliary characters ,
it is also empty )

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> | The element of wood to be checked |

#### Returns

`boolean`

***

### isEmptyContent()

`static` **isEmptyContent**(`node`): `boolean`

Defined in: [src/core/dom/dom.ts:359](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L359)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

#### Returns

`boolean`

***

### isContentEditable()

`static` **isContentEditable**(`node`, `root`): `boolean`

Defined in: [src/core/dom/dom.ts:368](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L368)

The node is editable

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Returns

`boolean`

***

#### Call Signature

`static` **isEmpty**(`node`, `condNoEmptyElement`): `boolean`

Defined in: [src/core/dom/dom.ts:384](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L384)

Check if element is empty

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `condNoEmptyElement` | (`node`) => `boolean` |

##### Returns

`boolean`

#### Call Signature

`static` **isEmpty**(`node`, `noEmptyTags?`): `boolean`

Defined in: [src/core/dom/dom.ts:388](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L388)

Check if element is empty

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `noEmptyTags?` | [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<`string`\> |

##### Returns

`boolean`

***

### isNode()

`static` **isNode**(`object`): `object is Node`

Defined in: [src/core/dom/dom.ts:430](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L430)

Returns true if it is a DOM node

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `object` | `unknown` |

#### Returns

`object is Node`

***

### isCell()

`static` **isCell**(`elm`): `elm is HTMLTableCellElement`

Defined in: [src/core/dom/dom.ts:444](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L444)

Check if element is table cell

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | `unknown` |

#### Returns

`elm is HTMLTableCellElement`

***

### isList()

`static` **isList**(`elm`): elm is HTMLUListElement \| HTMLOListElement

Defined in: [src/core/dom/dom.ts:453](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L453)

Check if element is a list element UL or OL

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |

#### Returns

elm is HTMLUListElement \| HTMLOListElement

***

### isLeaf()

`static` **isLeaf**(`elm`): `elm is HTMLLIElement`

Defined in: [src/core/dom/dom.ts:462](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L462)

Check if element is a part of list  element LI

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |

#### Returns

`elm is HTMLLIElement`

***

### isImage()

`static` **isImage**(`elm`): `elm is HTMLImageElement`

Defined in: [src/core/dom/dom.ts:469](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L469)

Check is element is Image element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | `unknown` |

#### Returns

`elm is HTMLImageElement`

***

### isBlock()

`static` **isBlock**(`node`): `node is HTMLDivElement`

Defined in: [src/core/dom/dom.ts:479](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L479)

Check the `node` is a block element

#### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `node` | `unknown` | Object to check |

#### Returns

`node is HTMLDivElement`

***

### isText()

`static` **isText**(`node`): `node is Text`

Defined in: [src/core/dom/dom.ts:491](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L491)

Check if element is text node

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `false` \| [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| `null` |

#### Returns

`node is Text`

***

### isComment()

`static` **isComment**(`node`): `node is Comment`

Defined in: [src/core/dom/dom.ts:498](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L498)

Check if element is comment node

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `false` \| [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |

#### Returns

`node is Comment`

***

### isElement()

`static` **isElement**(`node`): `node is Element`

Defined in: [src/core/dom/dom.ts:505](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L505)

Check if element is element node

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `unknown` |

#### Returns

`node is Element`

***

### isFragment()

`static` **isFragment**(`node`): `node is DocumentFragment`

Defined in: [src/core/dom/dom.ts:518](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L518)

Check if element is document fragment

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `unknown` |

#### Returns

`node is DocumentFragment`

***

### isHTMLElement()

`static` **isHTMLElement**(`node`): `node is HTMLElement`

Defined in: [src/core/dom/dom.ts:532](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L532)

Check if element is HTMLElement node

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `unknown` |

#### Returns

`node is HTMLElement`

***

### isInlineBlock()

`static` **isInlineBlock**(`node`): `node is HTMLElement`

Defined in: [src/core/dom/dom.ts:547](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L547)

Check element is inline block

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `false` \| [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| `null` |

#### Returns

`node is HTMLElement`

***

### canSplitBlock()

`static` **canSplitBlock**(`node`): `boolean`

Defined in: [src/core/dom/dom.ts:560](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L560)

It's block and it can be split

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `unknown` |

#### Returns

`boolean`

***

### first()

`static` **first**(`root`, `condition`): [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:574](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L574)

Get first matched node inside root

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

### last()

`static` **last**(`root`, `condition`): [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:584](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L584)

Get last matched node inside root

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

### prev()

`static` **prev**\<`T`\>(`node`, `condition`, `root`, `withChild?`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/dom/dom.ts:637](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L637)

Find previous node

#### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` *extends* [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) | `undefined` |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) | `undefined` |
| `withChild` | `boolean` | `true` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

***

### next()

`static` **next**\<`T`\>(`node`, `condition`, `root`, `withChild?`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/dom/dom.ts:649](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L649)

Find next node what `condition(next) === true`

#### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` *extends* [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) | `undefined` |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) | `undefined` |
| `withChild` | `boolean` | `true` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

***

### prevWithClass()

`static` **prevWithClass**(`node`, `className`): [`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

Defined in: [src/core/dom/dom.ts:658](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L658)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `className` | `string` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

***

### nextWithClass()

`static` **nextWithClass**(`node`, `className`): [`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

Defined in: [src/core/dom/dom.ts:665](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L665)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `className` | `string` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)\>

***

### find()

`static` **find**\<`T`\>(`node`, `condition`, `root`, `leftToRight?`, `withChild?`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/dom/dom.ts:691](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L691)

Find next/prev node what `condition(next) === true`

#### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` *extends* [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) | `undefined` |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) | `undefined` |
| `leftToRight` | `boolean` | `true` |
| `withChild` | `boolean` | `true` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

***

### nextGen()

`static` **nextGen**(`start`, `root`, `leftToRight?`, `withChild?`): [`Generator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Generator)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:718](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L718)

Lazily iterate over all nodes what follow after `start` (in document order
for `leftToRight = true`, in reverse order otherwise) inside `root`.
Ancestors of `start` are not yielded.

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `start` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) | `undefined` |
| `leftToRight` | `boolean` | `true` |
| `withChild` | `boolean` | `true` |

#### Returns

[`Generator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Generator)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

### each()

`static` **each**(`elm`, `callback`, `leftToRight?`): `boolean`

Defined in: [src/core/dom/dom.ts:762](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L762)

It goes through all the internal elements of the node, causing a callback function

#### Parameters

| Parameter | Type | Default value | Description |
| ------ | ------ | ------ | ------ |
| `elm` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` | the element whose children and descendants you want to iterate over |
| `callback` | (`node`) => `boolean` \| `void` | `undefined` | It called for each item found |
| `leftToRight` | `boolean` | `true` | - |

#### Returns

`boolean`

#### Example

```javascript
Jodit.modules.Dom.each(editor.s.current(), function (node) {
 if (node.nodeType === Node.TEXT_NODE) {
     node.nodeValue = node.nodeValue.replace(Jodit.INVISIBLE_SPACE_REG_EXP(), '') // remove all of the text element codes invisible character
 }
});
```

***

### eachGen()

`static` **eachGen**(`root`, `leftToRight?`): [`Generator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Generator)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:782](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L782)

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `root` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `leftToRight` | `boolean` | `true` |

#### Returns

[`Generator`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Generator)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

### findWithCurrent()

`static` **findWithCurrent**(`node`, `condition`, `root`, `sibling?`, `child?`): [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:815](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L815)

Find next/prev node what `condition(next) === true`

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) | `undefined` |
| `root` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) | `undefined` |
| `sibling` | `"nextSibling"` \| `"previousSibling"` | `'nextSibling'` |
| `child` | `"firstChild"` \| `"lastChild"` | `'firstChild'` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

### findSibling()

`static` **findSibling**(`node`, `left?`, `cond?`): [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:858](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L858)

Get not empty sibling

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `left` | `boolean` | `true` |
| `cond` | (`n`) => `boolean` | `...` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

### findNotEmptySibling()

`static` **findNotEmptySibling**(`node`, `left`): [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:876](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L876)

Returns the nearest non-empty sibling

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `left` | `boolean` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

### findNotEmptyNeighbor()

`static` **findNotEmptyNeighbor**(`node`, `left`, `root`): [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:890](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L890)

Returns the nearest non-empty neighbor

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `left` | `boolean` |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

***

#### Call Signature

`static` **sibling**(`node`, `left?`): [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

Defined in: [src/core/dom/dom.ts:911](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L911)

Returns the previous (`left = true`) or next sibling of the node

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `left?` | `boolean` |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\>

#### Call Signature

`static` **sibling**(`node`, `left?`): [`Nullable`](../modules/types.html#nullable)\<[`VNode`](../interfaces/types.VNode.html)\>

Defined in: [src/core/dom/dom.ts:912](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L912)

Returns the previous (`left = true`) or next sibling of the node

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`VNode`](../interfaces/types.VNode.html) |
| `left?` | `boolean` |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<[`VNode`](../interfaces/types.VNode.html)\>

***

### up()

`static` **up**\<`T`\>(`node`, `condition`, `root?`, `checkRoot?`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/dom/dom.ts:924](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L924)

It goes through all the elements in ascending order, and checks to see if they meet the predetermined condition

The condition is checked for the `node` itself too. The `root` reached
while ascending is checked only when `checkRoot = true`
(but if `node === root` it is checked in any case).

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> | `undefined` |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) | `undefined` |
| `root?` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `checkRoot?` | `boolean` | `false` |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

***

#### Call Signature

`static` **closest**\<`T`, `K`\>(`node`, `tags`, `root`): [`Nullable`](../modules/types.html#nullable)\<`HTMLElementTagNameMap`\[`K`\]\>

Defined in: [src/core/dom/dom.ts:958](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L958)

Find parent by tag name

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `K` *extends* [`HTMLTagNames`](../modules/types.html#htmltagnames) |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `tags` | `K` |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<`HTMLElementTagNameMap`\[`K`\]\>

#### Call Signature

`static` **closest**\<`T`, `K`\>(`node`, `tags`, `root`): [`Nullable`](../modules/types.html#nullable)\<`HTMLElementTagNameMap`\[`K`\]\>

Defined in: [src/core/dom/dom.ts:964](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L964)

Find parent by tag name

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `K` *extends* keyof `HTMLElementTagNameMap` |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `tags` | [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<`K`\> |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<`HTMLElementTagNameMap`\[`K`\]\>

#### Call Signature

`static` **closest**\<`T`, `K`\>(`node`, `tags`, `root`): [`Nullable`](../modules/types.html#nullable)\<`HTMLElementTagNameMap`\[`K`\]\>

Defined in: [src/core/dom/dom.ts:973](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L973)

Find parent by tag name

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |
| `K` *extends* keyof `HTMLElementTagNameMap` |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `tags` | `K`[] |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<`HTMLElementTagNameMap`\[`K`\]\>

#### Call Signature

`static` **closest**\<`T`\>(`node`, `condition`, `root`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/dom/dom.ts:982](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L982)

Find parent by tag name

##### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

##### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

***

### furthest()

`static` **furthest**\<`T`\>(`node`, `condition`, `root`): [`Nullable`](../modules/types.html#nullable)\<`T`\>

Defined in: [src/core/dom/dom.ts:1017](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1017)

Furthest parent node matching condition

#### Type Parameters

| Type Parameter |
| ------ |
| `T` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |
| `condition` | [`NodeCondition`](../modules/types.html#nodecondition) |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Returns

[`Nullable`](../modules/types.html#nullable)\<`T`\>

***

### appendChildFirst()

`static` **appendChildFirst**(`root`, `newElement`): `void`

Defined in: [src/core/dom/dom.ts:1039](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1039)

Append new element in the start of root

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | [`VNode`](../interfaces/types.VNode.html) |
| `newElement` | [`VNode`](../interfaces/types.VNode.html) |

#### Returns

`void`

***

### after()

`static` **after**(`elm`, `newElement`): `void`

Defined in: [src/core/dom/dom.ts:1048](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1048)

Insert newElement after element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`VNode`](../interfaces/types.VNode.html) |
| `newElement` | [`VNode`](../interfaces/types.VNode.html) |

#### Returns

`void`

***

### before()

`static` **before**(`elm`, `newElement`): `void`

Defined in: [src/core/dom/dom.ts:1056](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1056)

Insert newElement before element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`VNode`](../interfaces/types.VNode.html) |
| `newElement` | [`VNode`](../interfaces/types.VNode.html) |

#### Returns

`void`

***

### prepend()

`static` **prepend**(`root`, `newElement`): `void`

Defined in: [src/core/dom/dom.ts:1063](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1063)

Insert newElement as first child inside element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | [`VNode`](../interfaces/types.VNode.html) |
| `newElement` | [`VNode`](../interfaces/types.VNode.html) |

#### Returns

`void`

***

#### Call Signature

`static` **append**(`root`, `newElements`): `void`

Defined in: [src/core/dom/dom.ts:1070](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1070)

Insert newElement as last child inside element

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | [`VNode`](../interfaces/types.VNode.html) |
| `newElements` | [`VNode`](../interfaces/types.VNode.html)[] |

##### Returns

`void`

#### Call Signature

`static` **append**(`root`, `newElement`): `void`

Defined in: [src/core/dom/dom.ts:1072](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1072)

Insert newElement as last child inside element

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | [`VNode`](../interfaces/types.VNode.html) |
| `newElement` | [`VNode`](../interfaces/types.VNode.html) |

##### Returns

`void`

***

#### Call Signature

`static` **moveContent**(`from`, `to`, `inStart?`, `filter?`): `void`

Defined in: [src/core/dom/dom.ts:1087](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1087)

Move all content to another element

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `from` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `to` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |
| `inStart?` | `boolean` |
| `filter?` | (`node`) => `boolean` |

##### Returns

`void`

#### Call Signature

`static` **moveContent**(`from`, `to`, `inStart?`, `filter?`): `void`

Defined in: [src/core/dom/dom.ts:1094](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1094)

Move all content to another element

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `from` | [`VNode`](../interfaces/types.VNode.html) |
| `to` | [`VNode`](../interfaces/types.VNode.html) |
| `inStart?` | `boolean` |
| `filter?` | (`node`) => `boolean` |

##### Returns

`void`

***

### isOrContains()

`static` **isOrContains**(`root`, `child`, `onlyContains?`): `boolean`

Defined in: [src/core/dom/dom.ts:1134](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1134)

Check root contains child or equal child

#### Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `root` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `child` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) | `undefined` |
| `onlyContains` | `boolean` | `false` |

#### Returns

`boolean`

***

### safeRemove()

`static` **safeRemove**(...`nodes`): `void`

Defined in: [src/core/dom/dom.ts:1151](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1151)

Safe remove element from DOM

#### Parameters

| Parameter | Type |
| ------ | ------ |
| ...`nodes` | `unknown`[] |

#### Returns

`void`

***

### safeInsertNode()

`static` **safeInsertNode**(`range`, `node`): `void`

Defined in: [src/core/dom/dom.ts:1166](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1166)

Insert a node into the range and collapse the range to the start of
the inserted content. Unlike the native `Range.insertNode` it does not
split inseparable elements (BR, HR, IMG etc.) and removes empty text
nodes produced by the split of a text container.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `range` | [`Range`](https://developer.mozilla.org/docs/Web/API/Range) |
| `node` | [`Node`](https://developer.mozilla.org/docs/Web/API/Node) |

#### Returns

`void`

***

### hide()

`static` **hide**(`node`): `void`

Defined in: [src/core/dom/dom.ts:1194](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1194)

Hide element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`VHTMLElement`](../interfaces/types.VHTMLElement.html)\> |

#### Returns

`void`

***

### show()

`static` **show**(`node`): `void`

Defined in: [src/core/dom/dom.ts:1206](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1206)

Show element

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`Nullable`](../modules/types.html#nullable)\<[`VHTMLElement`](../interfaces/types.VHTMLElement.html)\> |

#### Returns

`void`

***

#### Call Signature

`static` **isTag**\<`K`\>(`node`, `tagName`): `node is HTMLElementTagNameMap[K]`

Defined in: [src/core/dom/dom.ts:1221](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1221)

Check if element is some tag

##### Type Parameters

| Type Parameter |
| ------ |
| `K` *extends* [`HTMLTagNames`](../modules/types.html#htmltagnames) |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `false` \| [`EventTarget`](https://developer.mozilla.org/docs/Web/API/EventTarget) \| [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| `null` \| `undefined` |
| `tagName` | `K` |

##### Returns

`node is HTMLElementTagNameMap[K]`

#### Call Signature

`static` **isTag**\<`K`\>(`node`, `tagNames`): `node is HTMLElementTagNameMap[K]`

Defined in: [src/core/dom/dom.ts:1226](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1226)

Check if element is some tag

##### Type Parameters

| Type Parameter |
| ------ |
| `K` *extends* [`HTMLTagNames`](../modules/types.html#htmltagnames) |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | `false` \| [`EventTarget`](https://developer.mozilla.org/docs/Web/API/EventTarget) \| [`Node`](https://developer.mozilla.org/docs/Web/API/Node) \| `null` \| `undefined` |
| `tagNames` | [`Set`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set)\<`K`\> |

##### Returns

`node is HTMLElementTagNameMap[K]`

***

### markTemporary()

`static` **markTemporary**\<`K`\>(`element`, `attributes?`): `K`

Defined in: [src/core/dom/dom.ts:1260](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1260)

Marks an item as temporary

#### Type Parameters

| Type Parameter |
| ------ |
| `K` *extends* [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `element` | `K` |
| `attributes?` | [`IDictionary`](../modules/types.html#idictionary) |

#### Returns

`K`

***

### isTemporary()

`static` **isTemporary**(`element`): `boolean`

Defined in: [src/core/dom/dom.ts:1272](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1272)

Check if element is temporary

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `element` | `unknown` |

#### Returns

`boolean`

***

### isMarker()

`static` **isMarker**(`elm`): `elm is HTMLElement`

Defined in: [src/core/dom/dom.ts:1283](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1283)

Define element is selection helper

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `elm` | [`Nullable`](../modules/types.html#nullable)\<[`Node`](https://developer.mozilla.org/docs/Web/API/Node)\> |

#### Returns

`elm is HTMLElement`

***

### replaceTemporaryFromString()

`static` **replaceTemporaryFromString**(`value`): `string`

Defined in: [src/core/dom/dom.ts:1294](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1294)

Unwrap temporary elements inside a HTML string (keeps their content)

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `string` |

#### Returns

`string`

***

### temporaryList()

`static` **temporaryList**(`root`): [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)[]

Defined in: [src/core/dom/dom.ts:1302](https://github.com/xdan/jodit/blob/main/src/core/dom/dom.ts#L1302)

Collect the temporary elements (`data-jodit-temp`) inside the root.
A plain tree walk on purpose: no selector engine, works on VNode.

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `root` | [`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement) |

#### Returns

[`HTMLElement`](https://developer.mozilla.org/docs/Web/API/HTMLElement)[]
