mediawiki-extensions-Visual.../modules/ve-mw/ce
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
..
annotations doc: Bump copyright year 2018-01-03 17:45:07 +00:00
nodes ve.ce.MWBlockImageNode: Allow normal CE rendering to handle the caption 2018-03-10 17:16:16 +00:00
styles/nodes Increase selector specificity for .ve-ce-focusableNode-invisibleIcon 2018-02-21 22:30:45 +01:00
ve.ce.MWResizableNode.js doc: Bump copyright year 2018-01-03 17:45:07 +00:00
ve.ce.MWWikitextSurface.js NWE: Use internal paste in compatible browsers 2018-01-25 17:40:26 -08:00