VisualEditor: "Uncaught TypeError: Cannot read property 'getSurface' of null" when applying a heading format on citation
Open, NormalPublic

Description

screenshot

Environment- Test2, beta, production

Highlight a citation and select any text style from the drop-down. I get "Uncaught TypeError: Cannot read property 'getSurface' of null".


Version: unspecified
Severity: minor
OS: Windows XP

Attached:

Details

Reference
bz70888
bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz70888.
Swainr created this task.Sep 16 2014, 4:47 PM

I could reproduce it while applying the text style, but the heading styles on Citation,your screenshot also matches with the later case.

(In reply to Rummana Yasmeen from comment #1)

I could not reproduce it while applying the text style, but the heading styles
on Citation,your screenshot also matches with the later case.

(In reply to Rummana Yasmeen from comment #1)

I could reproduce it while applying the text style, but the heading styles
on Citation,your screenshot also matches with the later case.

Rummana,it happens when the citation is highlighted and i change the text style to anything(not just Heading). In the screenshot, i had changed the style from paragraph to Heading, while the citation was highlighted.

(In reply to Ritu Swain from comment #3)

(In reply to Rummana Yasmeen from comment #1)
> I could reproduce it while applying the text style, but the heading styles
> on Citation,your screenshot also matches with the later case.

Rummana,it happens when the citation is highlighted and i change the text
style to anything(not just Heading). In the screenshot, i had changed the
style from paragraph to Heading, while the citation was highlighted.

Ritu, yes that is what I am referring to by "applying Heading Style" which includes any of those heading formats (Heading,sub-heading 1 etc). By "Text style", I thought you are referring to text formatting (Bold/Italic etc), which I think is not how you reproduced this issue?

(In reply to Rummana Yasmeen from comment #4)

(In reply to Ritu Swain from comment #3)
> (In reply to Rummana Yasmeen from comment #1)
> > I could reproduce it while applying the text style, but the heading styles
> > on Citation,your screenshot also matches with the later case.
>
> Rummana,it happens when the citation is highlighted and i change the text
> style to anything(not just Heading). In the screenshot, i had changed the
> style from paragraph to Heading, while the citation was highlighted.

Ritu, yes that is what I am referring to by "applying Heading Style" which
includes any of those heading formats (Heading,sub-heading 1 etc). By "Text
style", I thought you are referring to text formatting (Bold/Italic etc),
which I think is not how you reproduced this issue?

i am not in front of my system to actually check it. but yes by "Text Style" i meant the headings and not the font styles.

Jdforrester-WMF triaged this task as Normal priority.Feb 11 2015, 5:14 PM
Jdforrester-WMF set Security to None.