Page MenuHomePhabricator

VisualEditor: Don't allow users to insert images inside images' captions inside images' captions, as MediaWiki can't cope with that
Closed, DuplicatePublic

Description

Screenshot

Steps to reproduce:

1.Open a page with VE
2.Insert an image
3.Go to Media Settings of that image and add another image inside it
4.Now Go to the media settings of the image that you just added
5.Type something in the caption of the second image
6.Apply changes
7.Save the page

Observed Result:
The wiki text for the image shows up in the read mode

See the screenshot attached

Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: FF 25
OS: MAC OS X 10. 8. 5
Page:http://en.wikipedia.beta.wmflabs.org/wiki/19thfebFF


Version: unspecified
Severity: minor

Attached:

Screen_Shot_2014-02-19_at_2.54.24_PM.png (252×1 px, 32 KB)

Details

Reference
bz61564

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:07 AM
bzimport set Reference to bz61564.

I can't make three-deep nested images work in wikitext.

Three deep (image1's caption contains image2, and image2's caption contains image3) causes this problem if done in VisualEditor:
http://en.wikipedia.beta.wmflabs.org/w/index.php?&oldid=82440 It displays correctly in VisualEditor, but makes a mess when you save.

Two deep in wikitext displays correctly: https://en.wikipedia.org/w/index.php?&oldid=598318957#List

Three deep in wikitext shows me only the first image. The other two in my (unsaved) attempts simply disappeared from view (although present in the wikitext code).

It's possible that I simply haven't found the perfect sequence of nesting the images, but if wikitext can't handle more than two in a nested sequence, the VisualEditor shouldn't offer it.