Resolve "Copying ordered list to new comment becomes unordered"
What does this MR do?
Fixes copying and pasting ordered lists from/to GFM, when just the list was selected. This is done by evaluating the commonAncestorContainer of the selection and, if necessary, including it.
I (re)used / rewrote some code from !17508 (closed), which is kind of related to this issue / merge request.
Are there points in the code the reviewer needs to double check?
I admit that this fix has more of a workaround than a "fix", but I think this is sufficient here.
Screenshots (if relevant)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Review
-
Has been reviewed by Frontend
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together
What are the relevant issue numbers?
Closes #40484 (closed)