Skip to content

Pasting anchor link transforms selected text into link #49636

Open
@porg

Description

Reproduction

  1. Copy an anchor link like #introduction to your clipboard with ⌘-C.
  2. Select text portion which shall get a link.
  3. Paste your clipboard with ⌘-V

Result

Actual: The anchor link gets pasted as raw text and replaces the selected text.

Proposed: The selected text gets a link to a local anchor. HTML result should be:

As mentioned in the<a href="#introduction">intro</a> you have…

Workaround: Open link dialog with ⌘-K and paste the anchor link there and then apply it.

Video Recording of status quo and workarround

Wordpress Gutenberg - Pasting anchor link should transforms selected text into link - But as of WP 6.1.1 instead gets pasted as raw text and replaces the selected text

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs DecisionNeeds a decision to be actionable or relevant[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions