Page MenuHomePhabricator

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


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

jeblad created this task.Aug 25 2017, 12:56 AM
Restricted Application added subscribers: Danmichaelo, Aklapper. · View Herald TranscriptAug 25 2017, 12:56 AM
jeblad updated the task description. (Show Details)Aug 25 2017, 1:09 AM

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 triaged this task as High priority.Aug 25 2017, 5:20 PM
Niharika added a project: Community-Tech.
Niharika added a subscriber: Niharika.

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

Seems like this is fixed? Nice! :)

MaxSem closed this task as Resolved.Aug 28 2017, 9:21 PM
MaxSem claimed this task.
MaxSem added a subscriber: MaxSem.

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