mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
26e7728272
Overriding ve.ce.BranchNode#onSplice seems pretty scary, some bug could cause two captions to be inserted and it wouldn't even be visible in the editor. Instead, allow normal splice handling to happen when the caption is added/removed, and only override the position where it is inserted (to account for the image node this.$a). The caption node is already removed from DM/CE if the image type is changed to one that doesn't have captions, and even if that failed it is also hidden in CSS, so we don't need to handle this. Change-Id: I54f52b288118d692708311512dd674cc85d5d9e3 |
||
---|---|---|
.. | ||
ve-mw | ||
ve-mw-collab |