Skip to content

Insert link: the link selection disappears when entering a link #6156

@noisysocks

Description

@noisysocks

Issue Overview

When inserting a link, your text selection disappears when the focus changes into the Paste URL or type text field. This makes it hard to tell exactly what text you are linking.

Screenshots / Video

new links

Steps to Reproduce (for bugs)

  1. Create a paragraph block
  2. Select some text
  3. Click on the Link button in the formatting toolbar

Expected Behavior

Your cursor should be in the Paste URL or type text field and there should be a blue selection rectangle around the text that you selected.

Current Behavior

Your cursor is in the Paste URL or type text field but the text you selected is no longer selected.

Possible Solution

The classic editor solves this by immediately inserting a link placeholder, as soon as you create a link:

classic links

Related Issues and/or PRs

This was flagged as an issue in #4572 and #5960 (comment). #4909 contained a failed attempt at fixing this.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions