Issue 215
enhancement: Rich-text links use the shared Link
Back to our planDone
enhancementfrontendpriority: low
Type
enhancement
Problem
Links inside rich text (inventory element N20) are still drawn by Payload's Lexical link converter (LinkJSXConverter in src/components/RichText/index.tsx) and styled by the prose rules, not by the shared Link (#210, #212). So they don't get Link's new-tab announcement, focus ring or contrast-safe hover. A link to a deleted document now resolves to / (it used to crash the page, #211); it would be better shown as plain text.
Proposed fix
When RichText moves to src/platform/richtext/ (approved component set), override the link and autolink converters to render Link · inline with resolveLink/documentHref, and render a link whose document is gone as plain text.
Acceptance criteria
- Not done: Rich-text links render the shared
Link(inline), with the new-tab note when set. - Not done: A link to a deleted document shows as text, not a link to
/. - Not done: A test covers both.
Area
frontend
Priority
priority: low
Generated by Claude Code, opens in a new tab