Last modified: 2013-05-16 17:55:43 UTC
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
Timo, can you confirm this in master? I think it's been fixed by Ed's change to how annotations are compared…
Confirmed on mediawiki.org
*** Bug 48489 has been marked as a duplicate of this bug. ***