https://bugzilla.wikimedia.org/show_bug.cgi?id=70571
Bug ID: 70571
Summary: VisualEditor: After removing the Template:Top,trying
to place cursor on content throws TypeError: Cannot
read property 'Left'/'right'/'start' of null
Product: VisualEditor
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Editing Tools
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Web browser: ---
Mobile Platform: ---
Created attachment 16406
--> https://bugzilla.wikimedia.org/attachment.cgi?id=16406&action=edit
Screenshot
Steps to reproduce:
1.Open a page with VE
2.Insert a template Top, specify a bg color code so you can see the effect
better on CE.I tried with #FFFFE0
3.Now click on Insert and Save the page
4.You will see the entire content after that template (until references list)
gets added as a Content section for that template and inherits the styling
specified in the template parameters.
5.Reopen the page
6.Reopen the transclusion dialog for that template
7.Click on the Delete icon to remove the template "Top" to just retain the
usual format of the text.
8.Click on "Apply Changes"
9.Now when you are back to CE, try to place your cursor on the content which
was part of that template
Observed Result:
It throws the following error on each click:
Uncaught TypeError: Cannot read property 'right' of null
Uncaught Error: ve.dm.Document.getNodeFromOffset(): offset 85 is out of bounds
Page:https://en.wikipedia.org/wiki/User:RYasmeen_(WMF)/sandbox?veaction=edit
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l