ckeditor5-elements / isInDocument
Function: isInDocument()
ts
function isInDocument(elementOrPosition): boolean;Whether the element (or position) is in the document. Unlike element.isAttached(), removed elements (moved to the graveyard root) do not count, and neither do the elements of detached roots.
Parameters
| Parameter | Type |
|---|---|
elementOrPosition | | ModelElement | ModelPosition |
Returns
boolean