Skip to content

EditorView.setRoot method

EditorView › setRoot

Official

Update the root in which the editor lives.

Signature:

setRoot(root: Document | ShadowRoot): void

Parameters:

Parameter Type Description
root Document | ShadowRoot The new root.

Returns: void