Page MenuHomePhabricator

VisualEditor: Backwards cursoring of an image inside an image's caption selects the sub-image, not the main image (and then breaks nastily)
Closed, ResolvedPublic

Description

Intention:
Delete an image.

Steps to Reproduce:

  1. Click on http://en.wikipedia.beta.wmflabs.org/w/index.php?oldid=82527&veaction=edit
  1. Place cursor inside the ==Referenced text== section heading.
  1. Press the forward arrow key a few times. At the end of the line, you'll select the entire image-and-image-containing-caption block. Forward-arrow once more, and you'll end up in the first paragraph. (This is all expected behavior.)
  1. If necessary, place your cursor in the first sentence after the ==Referenced text== section heading.
  1. Press the back arrow key a few times. This selects only the image that is inside the caption, not the entire two-image block. You can remove the second image or change the caption for the first image (only) while your cursor is there. If you keep back-arrowing, you'll eventually select the whole block, and then end up in the ==Referenced text== section heading.

Expected Results:
I expected forward- and backward- arrows to produce the same results.

I like the "backward" result better. Why not make it possible to edit captions simply by placing the cursor in the caption (either by clicking the caption [instead of the image] or with the keyboard)?

Reproducible: Always


Version: unspecified
Severity: major

Details

Reference
bz62395