Catrope has uploaded a new change for review. Change subject: (bug 37980) Cutting all text and repasting it breaks the editor ......................................................................
(bug 37980) Cutting all text and repasting it breaks the editor This was caused by a bug in fixupInsertion that caused it to believe that inserting something like "a</p><p>b</p><p>c" into the middle of an empty paragraph was invalid. This commit fixes the fixupInsertion bug, which fixes the select-all-cut-paste behavior in Chrome. It's still broken in Firefox because of selection-related issues, but I'll split that out into a different bug report. Change-Id: I767f5d37ec7e511778ae9ca8283ec4b26c728298 --- M modules/ve/dm/ve.dm.Document.js M tests/ve/dm/ve.dm.Transaction.test.js 2 files changed, 35 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/98/14398/1 -- To view, visit https://gerrit.wikimedia.org/r/14398 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I767f5d37ec7e511778ae9ca8283ec4b26c728298 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: Catrope <roan.katt...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits