https://bugzilla.wikimedia.org/show_bug.cgi?id=48195
Web browser: ---
Bug ID: 48195
Summary: VisualEditor: Don't close/re-open annotation when
pasting text into a comparable context
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: General
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l