Last modified: 2014-09-10 19:01:20 UTC
Created attachment 16406 [details] 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