mediawiki-extensions-Visual.../modules/ve-mw/ce/nodes
Bartosz Dziewoński 26e7728272 ve.ce.MWBlockImageNode: Allow normal CE rendering to handle the caption
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
2018-03-10 17:16:16 +00:00
..
ve.ce.MWAlienExtensionNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWBlockImageNode.js ve.ce.MWBlockImageNode: Allow normal CE rendering to handle the caption 2018-03-10 17:16:16 +00:00
ve.ce.MWEntityNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWExtensionNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWGalleryNode.js ve.ce.MWGalleryNode: Ensure we always have a focusable element 2018-02-21 22:22:49 +01:00
ve.ce.MWHeadingNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWImageCaptionNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWImageNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWInlineImageNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWLanguageVariantNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWMagicLinkNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWNumberedExternalLinkNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWPreformattedNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWPreNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWSignatureNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWTableNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWTransclusionNode.js Remove autoGenerated hack 2018-01-12 11:52:42 -05:00