Skip to content

design: add new tab and nofollow options to the link field - #4792

Open
danielmlr wants to merge 4 commits into
mainfrom
daniel/design-link-new-tab-rel
Open

danielmlr wants to merge 4 commits into
mainfrom
daniel/design-link-new-tab-rel

Conversation

@danielmlr

@danielmlr danielmlr commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Design proposal

Proposal: proposals/rich-text-link-new-tab-and-rel.md

This feature plan lets authors make a rich text link open in a new tab and mark it sponsored, nofollow or ugc, in the link field of the admin and the visual editor. The link field takes only a URL. Stored links can already hold blank: true, which the WordPress importer sets, but authors can't choose it. There's no field for rel.

The plan adds an optional rel array to a link's markDefs entry, the shape the #4745 workaround already stores. The built-in Link mark renders it, and links without the new options render as before. It adds one optional field to stored links and the exported link type, with no migration, so it's a feature plan.

Proposal type

  • Feature plan
  • RFC
  • Amendment, supersession, or withdrawal

Related work

Discussion: #4745

#2769 asks for the same options. #4636 and #4670 touch the same converters without a conflict, and #4765's nofollow is only the page-level robots tag.

Readiness

AI assistance

  • This proposal used AI assistance — model/tool: Claude Code (Claude Opus 5.5)

Feature plan for per-link new tab and rel (nofollow, sponsored, ugc) in the rich text link field, from Discussion #4745 and #2769.
…rkdown

A pasted link with target="_blank" is already saved with blank: true, so
the gap is the link field, not the editor. Quotes lose link fields in a
Markdown round trip like paragraphs do. The rendered example is now a
whole element in the formatter's stable form.
The #4745 plugin writes the values the author checks, not the same two
on every link. Paste keeps rel values, and the editor's own HTML carries
TipTap's default rel today, so the plan now tests a pasted link and a
link copied inside the editor.
@changeset-bot

changeset-bot Bot commented Nov 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b5389ad

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Approval status

The current revision does not meet the approval requirements yet.

  • ❌ 1 human Maintainer approval from someone other than the author (normal change); found 0.
  • ✅ No outstanding change requests.

This comment updates as reviews arrive. See MAINTAINING.md and the proposal process for the rules.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://daniel-design-link-new-tab-rel.try.emdashcms.com, https://daniel-design-link-new-tab-rel-emdash-playground.emdash-cms.workers.dev (commit b5389ad)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://608361cf.try.emdashcms.com, https://608361cf-emdash-playground.emdash-cms.workers.dev b5389ad 2026-11-11T00:45:21.689Z Visit the dashboard ↗

@danielmlr danielmlr changed the title design: add new tab and nofollow options to the link field design: add new tab and nofollow options to the link field Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant