Skip to content

EditorView.setRoot method

EditorView › setRoot

Official

Update the root in which the editor lives.

Signature:

setRoot(root: Document | ShadowRoot): void

Parameters:

ParameterTypeDescription
rootDocument | ShadowRootThe new root.

Returns: void