Page MenuHomePhabricator

VisualEditor: Metadata should always be collapsed on replace
Closed, ResolvedPublic


In, we only merge metadata if the amount removed is larger than the amount inserted. But this could end up putting metadata in odd positions, for example if you have Foo[[Category:Bar]]BazQuux and you delete 'ooBa' and replace it with {image}xxx{/image}, then the category ends up inside the image.

We should always merge metadata when a segment is deleted, so that it appears outside any new structure added.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:56 AM
bzimport set Reference to bz53444.

Change 81928 had a related patch set uploaded by Cscott:
Collapse metadata on any removal.

Change 81928 merged by jenkins-bot:
Collapse metadata on any removal.