Page MenuHomePhabricator

VisualEditor: Uncaught TypeError: Cannot call method 'getChildren' of null appears while going to a newline after deleting an image
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open a page with VE
2.Insert an image
3.Now select the image and delete it
4.Go to the next line by pressing enter

Observed Result:

The following error appears in the console:

Uncaught TypeError: Cannot call method 'getChildren' of null
Uncaught TypeError: Cannot call method 'getChildren' of null load.php:269
ve.ce.Surface.handleEnter load.php:269
ve.ce.Surface.onDocumentKeyDown load.php:247
proxy load.php:10
ve.EventSequencer.onEvent load.php:21
(anonymous function) load.php:20
jQuery.event.dispatch load.php:45
elemData.handle.eventHandle

See the screenshot attached


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-03-04_at_3.00.41_PM.png (757×1 px, 185 KB)

Details

Reference
bz62235

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:58 AM
bzimport set Reference to bz62235.

Change 118340 had a related patch set uploaded by Catrope:
Fix JS error when pressing Enter with selection across multiple paragrahps

https://gerrit.wikimedia.org/r/118340

Change 118340 merged by jenkins-bot:
Fix JS error when pressing Enter with selection across multiple paragraphs

https://gerrit.wikimedia.org/r/118340