Not sure whether this is ContentEditable, DataModel or LinearModel.
When pasting italicised text (from elsewhere on the same page) into an already italicised sentence we currently close, re-open, close, re-open that annotation.
Steps to reproduce problem:
- start with: <p><i>Original text here.</i></p><p><i>Something else there.</i></p>
- select "else"
- copy
- select "text"
- paste to replace
- end state: <p class="ve-ce-branchNode"><i class="ve-ce-TextStyleAnnotation ve-ce-TextStyleItalicAnnotation">Original </i><i class="ve-ce-TextStyleAnnotation ve-ce-TextStyleItalicAnnotation">else</i><i class="ve-ce-TextStyleAnnotation ve-ce-TextStyleItalicAnnotation"> here.</i></p>
Now this wouldn't be a major issue (merely inefficient) if it weren't for bug 48194 in Parsoid.
Real example:
- Intended edit: https://www.mediawiki.org/w/index.php?title=Watchlist_wishlist&diff=686477&oldid=686247
- Actual edit as seen in the Review and save dialog of VisualEditor (and saved as-is): https://www.mediawiki.org/w/index.php?title=Watchlist_wishlist&diff=686475&oldid=686247
Version: unspecified
Severity: critical