Skip to content

LinkControl: Render edit view upon link creation #50892

@richtabor

Description

@richtabor

To edit a link, you need to first click on the link, see a preview of the link, then click "Edit link" to get the editing state.

Instead, I propose that when creating a link, the UI goes straight into the link editing view.

The effort in #57726 will allow for the link UI to remain open upon adding a link, while this issue covers directing the user to the edit view, rather than the link preview, upon first creating a link. This way, you will immediately have the full suite of link tools and settings right off, instead of having to click around to augment the link further.

Interacting with an existing link would still render the link preview.

Part of #50891

VIsual

Once #57726 is merged, when you first create a link, you are presented with the preview state of the LinkControl popover—like this:

297784641-46910857-eb70-4ca7-9fad-b74a7bed78b7

Instead, you should have the edit state. This way you may start manipulating the link further if you'd like to:

CleanShot 2024-01-18 at 10 11 06

Note that this should only occur when you first create the link.

Metadata

Metadata

Assignees

Labels

[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] Block editor/packages/block-editor[Status] In ProgressTracking issues with work in progress[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