Refine cursor positioning in Markdown Editor for wrap tags.
requested to merge johann.sonntagbauer/gitlab-ce:54015-Markdown-Editor-improve-Cursor-placement into master
What does this MR do?
Refine cursor positioning in Markdown Editor for wrap tags.
Wrap Tags like bold
or italic
will insert the tags and place the cursor in between if no text is selected upfront. If some text is selected, the behavior will not change and the cursor will be place at the end.
Example of the current implementation:
What are the relevant issue numbers?
Closes #54015 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process.
Edited by Johann Hubert Sonntagbauer