Skip to content

Function: createLinkPopover() ​

ts
function createLinkPopover(editor, options?): LinkPopover;

Behaviour and accessibility for adding and editing links: a trigger button, a small non-modal form, validation through setLink() (unsafe URLs are refused with a message), Escape to close, focus moved to the field on open and back to the editor on close. A press outside the form and its button (the page, another toolbar button) closes it and leaves focus there.

Parameters ​

ParameterType
editorEditor
options?LinkPopoverOptions

Returns ​

LinkPopover