# core/editor/utils/securesourceelement

module

<a id="functions">

## Functions

<a id="function-secureSourceElement">

### `secureSourceElement( editor, sourceElement ) → void`

Marks the source element on which the editor was initialized. This prevents other editor instances from using this element.

Running multiple editor instances on the same source element causes various issues and it is crucial this helper is called as soon as the source element is known to prevent collisions.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/editor/utils/securesourceelement.ts#L23)

#### Parameters

* `editor: Editor`

  Editor instance.

* `sourceElement: HTMLElement & object`

  Element to bind with the editor instance.

#### Returns

* `void`

---

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