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)
.
Parameters
Section titled “Parameters”editor
Section titled “editor”Editor or code block you want to add an overlay to.
PrismEditor
<{ }> | PrismCodeBlock
overlay
Section titled “overlay”HTMLElement
The overlay you want to add.
Returns
Section titled “Returns”void