-
Notifications
You must be signed in to change notification settings - Fork 4.8k
LinkControl: Render edit view upon link creation #50892
Copy link
Copy link
Open
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] Block editor/packages/block-editor/packages/block-editor[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).Changes that impact accessibility and need corresponding review (e.g. markup changes).[Package] Block editor/packages/block-editor/packages/block-editor[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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:
Instead, you should have the edit state. This way you may start manipulating the link further if you'd like to:
Note that this should only occur when you first create the link.