Page MenuHomePhabricator

Editable content disappears when syntax highlight in code mirror is turned on
Closed, ResolvedPublic

Description

Given I have a text like '''Foo''' ('''bar''') ping pong(this example)
And the syntax highlighting (code mirror) is enabled as beta feature
And i open the old WikiEditor (not the fancy one and not the stone-age-old one)
When I turn it on by clicking the colored pen symbol
Then I expect to see some nicely colored text in the edit frame

Actually I see nothing, the text disappears…

This happen in "Chromium Versjon 59.0.3071.109 (Utviklerversjon) Built on Ubuntu , running on Ubuntu 16.10 (64-bit)"

Chromium is virtually the same as Google Chrome, but without some Google specific adaptations.

Event Timeline

There are also another bug, the "try me" dialog box won't go away unless I click the "X".

Reproduced. Also, each time I click "try it" in the dialog box, or I toggle the syntaxhighlight on/off (by clicking the icon once it's enabled) the edit area gets longer.

Turning off all gadgets did not help. safemode=1 did not help. debug=1 did not help.
No errors in webconsole.

Niharika added a project: Community-Tech.
Niharika subscribed.

Yeah, this bug and T174060 seem related. The console errors look similar. I did get console errors when I reproduced this yesterday. TypeError: undefined is not an object (evaluating 'readyTokens[readyTokens.length].pos')

You can see this is a recurring bug every time you try to edit https://no.wikipedia.org/w/index.php?title=Bruker:Jeblad/test_of_syntax_highlight

Seems like this is fixed? Nice! :)

MaxSem claimed this task.
MaxSem subscribed.

Appears fixed for me. Please reopen if I'm wrong:)