Page MenuHomePhabricator

VisualEditor: Deleting the slug a floated image appears in deletes the image… but retains the caption as a paragraph
Closed, ResolvedPublic

Description

Deleting leading newline destroys [[File:....]]

Steps to reproduce:

  1. Open a page with [[File:...]] as first line
  1. VE adds a leading newline into the edit window
  1. Delete this leading newline because for experienced editor it looks superfluous
  1. Save

Result: [[File:...]] syntax is destroyed, only the caption is left.


Version: unspecified
Severity: normal
URL: https://test.wikipedia.org/w/index.php?title=User:Raymond/image&diff=174494&oldid=174493

Details

Reference
bz49645

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:54 AM
bzimport set Reference to bz49645.

Deleting the slug a floated item is locked into is "designed" to delete the item, so this is expected behaviour. See bug 43026 for a wider discussion - we need a better UX concept around here, I feel.

However, leaving the caption there is... not meant to happen. Re-purposing.

I cannot reproduce it now. Looks like it got fixed. Therefore, changing the status to resolved-fixed .
Reopen it if you think it still exists.

Backdating to when I *think* we fixed this.