Skip to content

Resolve "In rich text editor, allow opening link in new tab when clicking Cmd+Click"

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

Rich text editor currently does not allow CMD+Clicking a link to open in new tab, but opens a bubble menu allowing link edits. This MR makes it so Clicking the link opens the bubble menu but CMD+Clicking opens the link in a new tab.

How to set up and validate locally

  1. Go to any Merge Request page and on a content editor box, switch to rich text editing.
  2. Press the hyperlink icon from the menu and create a new link, after creation cmd/ctrl+click it to open the link in a new tab.

Related to #406506

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading