Page MenuHomePhabricator

Missing "ext.geshi.visualEditor" dependency in VEForAll creates JS Error when SyntaxHighlight_GeSHi is enabled
Closed, ResolvedPublic

Description

With enabled SyntaxHighlight_GeSHi, VEForAll throws

TypeError: Cannot read property 'on' of undefined

Javascript error.

This can be fixed by adding

"ext.geshi.visualEditor"

to VEForAll's extension.json ext.veforall.core dependencies. It would be good, if the missing dependency could be added dynamically as soon as SyntaxHighlight_GeSHi is available.

Event Timeline

Aklapper renamed this task from JS Error with enabled SyntaxHighlight_GeSHi to Missing "ext.geshi.visualEditor" dependency in VEForAll creates JS Error when SyntaxHighlight_GeSHi is enabled.Jan 28 2020, 1:13 PM
Yaron_Koren claimed this task.
Yaron_Koren subscribed.

I don't know how this got fixed, since I don't think that was dependency was added, but I just tried it and the combination of SyntaxHighlight, VEForAll and Page Forms seems to work fine for me - and no JavaScript errors appear. I assume this can be closed.