In Edit mode, hyperlinks can direct the user away from the page #48432
Labels
[Block] Categories
Affects the Categories Block
Needs Decision
Needs a decision to be actionable or relevant
[Type] Enhancement
A suggestion for improvement.
Description
@ajaxStardust originally reported this on Trac, using a "Description List" block (from a plugin).
At least with the standard Categories List block, clicking on a link can direct outside the editor when in Edit mode.
I found two ways the editor already prevents opening links in certain blocks. Blocks such as Archives, Calendar and Latest Comments disable clicking or selecting any of their contents. The Latest Posts block allows right-click (Ctrl+click), but clicking on one of the links gives a "Links are disabled in the editor" snackbar message. For the Categories List block, I think the right-click could be valuable.
(Clicking a link inside a Paragraph, Pullquote or Button block opens the link editor instead.)
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: