Repository navigation
Conversation
…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.
|
Contributor
Approval statusThe current revision does not meet the approval requirements yet.
This comment updates as reviews arrive. See MAINTAINING.md and the proposal process for the rules. |
🚀 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 deploymentPreview Deployments by commit
|
6 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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,nofolloworugc, in the link field of the admin and the visual editor. The link field takes only a URL. Stored links can already holdblank: true, which the WordPress importer sets, but authors can't choose it. There's no field forrel.The plan adds an optional
relarray to a link'smarkDefsentry, the shape the #4745 workaround already stores. The built-inLinkmark 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
Related work
Discussion: #4745
#2769 asks for the same options. #4636 and #4670 touch the same converters without a conflict, and #4765's
nofollowis only the page-level robots tag.Readiness
accepted(check only when ready to merge)AI assistance