# utils/dom/setdatainelement

module

<a id="functions">

## Functions

<a id="function-setDataInElement">

### `setDataInElement( el, data ) → void`

Sets data in a given element.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/dom/setdatainelement.ts#L18)

#### Parameters

* `el: HTMLElement`

  The element in which the data will be set.

* `data: string`

  The data string.

#### Returns

* `void`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
