-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[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.
Description
Follow-up for #17928 where @glendaviesnz fixed the root issue of #17657:
Block disappear when clicking on a link (anchor, ) with no href
Before:
![]()
After:
![]()
One option to improve the UX is to:
I tested it with the Class block and it looks like the way it's handled there is, it gets never converted into a link if you leave the input field empty. In the case where you remove the URL and save it, it works as if you would remove the link. We should replicate the same behavior.
To reproduce
- Copy text from a source where there is a tag with no href
or
create a link with no href when editing a block in HTML mode - In visual mode, click on the link or drag over it (like when you want to select text containing a anchor with no href).
- Check how popover behaves.
Metadata
Metadata
Assignees
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[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.