Skip to content

Autofocus link URL when editing link

Himanshu Kapoor requested to merge 393327-link-edit-autofocus into master

What does this MR do and why?

Autofocus link URL when editing link

In content editor, when editing a link, autofocus the link URL field

Changelog: added

Screenshots or screen recordings

Screen_Recording_2023-04-28_at_20.14.41

How to set up and validate locally

  1. Access content editor. Content editor (rich text editor) is available in wikis globally, and in issue/MR comments behind a feature flag :content_editor_on_issues. Click "Viewing markdown" at bottom right and select "Rich text" from the menu to switch to content editor.
  2. Click the button in the toolbar to insert a link, or press Cmd+k to insert it.
  3. Notice that the URL field is autofocused.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #393327 (closed)

Edited by Himanshu Kapoor

Merge request reports