VisualEditor: Error thrown when typing something while a left aligned image is selected
Open, NormalPublic

Description

Screenshot

Steps to reproduce:

1.Open a page with VE
2.Insert an image .
3.Go to Media Settings>Advances Settings
4.Set the image alignment to left/None
5.Save the page
6.Reopen the page
7.Select the image
8.Start typing something

Observed Result:
ncaught Error: Offset could not be translated to a DOM element and offset: 143 appears in the console

See the screenshot attached
Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: Chrome Version 26.0.1410.65
OS: MAC OS X 10. 8. 5
Page:http://en.wikipedia.beta.wmflabs.org/w/index.php?title=18thfebchrome&veaction=edit


Version: unspecified
Severity: normal

Attached:

Details

Reference
bz61524
bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz61524.

This is also happening while deleting the reflist of the same page

Found the steps to reproduce the case with deleting the reflist:

1.Add an image
2.Go to Media Settings>Advanced Settings
3.Set the position to left
4.Add a reference inside the image
5.Save the page
6.Open the page again
7.Delete the reflist

The error Uncaught Error: Offset could not be translated to a DOM element and offset: 143 appears in the console