DocsGuidesLink Interaction

Link Interaction

HybricMark uses editing-safe link behavior: click does not immediately navigate while editing, and link editing is exposed through context menu + shortcuts.

Default link config

Link.configure({
  openOnClick: false,
  autolink: true,
  linkOnPaste: true,
})

User interactions

  • Right click -> Link: opens link editor dialog.
  • If current selection already has a link, URL is prefilled and selected.
  • Hover on link for 500ms shows URL tooltip.
  • `Mod+K` / `Mod+Shift+K` opens link editor.

How to open links in read-only mode

When editor is read-only, links are opened in a new tab (`noopener,noreferrer`).
<HybricEditor content={doc} editable={false} />

Security notes

  • HybricMark blocks unsafe URL schemes in link handling.
  • Still sanitize/validate URLs server-side before persistence.