mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
47545a5d6f
This version pushes a `replaceMetadata` operation after a `replace` to fixup trailing metadata if there is no inserted region and the removed region includes metadata. This avoids a corner case where the size of the metadata arrays inserted/removed in `Transaction.pushReplace()` do not match the size of the data arrays inserted/removed. We remove the now-unused `Document.getMetadataReplace()` method. We also adjust `MetaList.onTransact()` so that it continues to work properly when the number of metadata entries in `replace.insert` is not the same as the number of metadata entries in `replace.remove`. Change-Id: I1d600405b855ca1cb569853bb885b0752df47173 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
ui | ||
example.png | ||
index.php | ||
ve.BranchNode.test.js | ||
ve.Document.test.js | ||
ve.Element.test.js | ||
ve.Factory.test.js | ||
ve.LeafNode.test.js | ||
ve.Node.test.js | ||
ve.qunit.js | ||
ve.Range.test.js | ||
ve.test.js | ||
ve.test.utils.js |