Back to API Reference
Class

LinkOnPasteBehavior

sealed
Inherits:InputBehavior

Pasting a bare URL over a non-collapsed selection turns the selection into a link instead of replacing it with the URL text — the ProseMirror / WordPress paste-link convention. Uses the field's own link style (the style whose modifier speaks Markdown link syntax, composites included); with no link style in the component's Styles the URL pastes as plain text. A collapsed caret pastes normally, and non-URL payloads pass through.

protected override void OnEnable()
protected override void OnDisable()