Page MenuHomePhabricator

VisualEditor: Adding a left aligned image just before the reflist distorts the position of reflist and "Cannot call method 'getModel' of null " appears while trying to fix it by pressing return
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open a page with VE
2.Add a text with reference
3.Add a reflist
4.Go to the next line of the text with reference and add an image
5.Go to the Media settings of the image and set the alignment to left(This should move the image between reference and reflist , instead it distorts the reflist position and it appears just beside the image instead of appearing below it)
6.Save the page
7.Reopen the page
8.Try to the position of reflist it by pressing enter

Observed Result:
No newline gets entered , an error appears in the console:
Uncaught TypeError: Cannot call method 'getModel' of null

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/wiki/Anotherdeep?veaction=edit


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-02-18_at_4.40.17_PM.png (669×1 px, 211 KB)

Details

Reference
bz61525

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:04 AM
bzimport set Reference to bz61525.

This is also happening when the first element of a page is image and you try to press enter to go to the next line

(In reply to ryasmeen from comment #1)

This is also happening when the first element of a page is image and you try
to press enter to go to the next line

Correction: When the first element of a page is a left aligned image

I don't see anything wrong with the rendering, it looks pretty similar to the PHP parser output. The pressing-enter-in-the-slug bug is a problem though.

The pressing-enter-in-the-slug bug is I think bug 59911, so merging with that.

  • This bug has been marked as a duplicate of bug 59911 ***

This issue got resolved with bug 59911