mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +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.ce.MWAlienExtensionNode.js | ||
ve.ce.MWBlockImageNode.js | ||
ve.ce.MWEntityNode.js | ||
ve.ce.MWExtensionNode.js | ||
ve.ce.MWGalleryNode.js | ||
ve.ce.MWHeadingNode.js | ||
ve.ce.MWImageCaptionNode.js | ||
ve.ce.MWImageNode.js | ||
ve.ce.MWInlineImageNode.js | ||
ve.ce.MWLanguageVariantNode.js | ||
ve.ce.MWMagicLinkNode.js | ||
ve.ce.MWNumberedExternalLinkNode.js | ||
ve.ce.MWPreformattedNode.js | ||
ve.ce.MWPreNode.js | ||
ve.ce.MWSignatureNode.js | ||
ve.ce.MWTableNode.js | ||
ve.ce.MWTransclusionNode.js |