An overlay widgets renders on top of the text.

interface IOverlayWidget {
    allowEditorOverflow?: boolean;
    getDomNode(): HTMLElement;
    getId(): string;
    getMinContentWidthInPx?(): number;
    getPosition(): IOverlayWidgetPosition;
}

Properties

allowEditorOverflow?: boolean

Render this overlay widget in a location where it could overflow the editor's view dom node.

Methods

  • Get the dom node of the overlay widget.

    Returns HTMLElement

  • Get a unique identifier of the overlay widget.

    Returns string

  • The editor will ensure that the scroll width is >= than this value.

    Returns number