Cm5Editor.addWidget method
Cm5Editor › addWidget
Unofficial
Puts an absolutely positioned DOM node into the editor.Signature:
addWidget(pos: Position, node: HTMLElement, scrollIntoView: boolean): voidParameters:
| 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