Skip to content

addOverlay

addOverlay(editor, overlay): void

Defined in: utils/index.ts:209

Adds an overlay by appending the element to the editors overlays. Equivalent to calling editor.lines[0].append(overlay).

Editor or code block you want to add an overlay to.

PrismEditor<{ }> | PrismCodeBlock

HTMLElement

The overlay you want to add.

void