Skip to content

Cm5Editor.addWidget method

Cm5Editor › addWidget

Unofficial

Puts an absolutely positioned DOM node into the editor.

Signature:

addWidget(pos: Position, node: HTMLElement, scrollIntoView: boolean): void

Parameters:

Parameter Type Description
pos Position The position to place the widget at.
node HTMLElement The DOM node.
scrollIntoView boolean Whether to scroll the widget into view.

Returns: void