Link Plugin
Link dialog and lifecycle commands with keyboard shortcut support.
Installation and Import
import { LinkPlugin } from "@editora/plugins";
// or: import { LinkPlugin } from "@editora/plugins/link";
Usage
const plugins = [LinkPlugin()];
Command Matrix
| Action | Command | Shortcut | Toolbar |
|---|---|---|---|
| Open link dialog | openLinkDialog | Mod-k | Link |
| Remove link | removeLink | None | Via dialog/command |
| Create link | createLink | None | Internal/dialog flow |
Config Options
This plugin does not expose plugin-level config options.
Mark/Attribute Model
hreftitletargetrel(noopener noreferrerwhen target is external)
Validation Checklist
- Link creation on selected text
- Link edit/remove preserves surrounding formatting
- External links include safe
relhandling