Page MenuHomePhabricator

Link pop up not appearing in editor
Closed, ResolvedPublic


Version 1.32 (same for master branch)
Using veForAll in pageforms

When using pageforms with visualeditor, click on the add link button of VE produce this error in console:

exception: is not a function

And no pop up appears.

It could be fixed by adding to resources/VEForAll.js:

mw.veForAll.Target.prototype.getContentApi = function ( doc, options ) {
  return new mw.Api( options );

But maybe mw.veForAll.Target just inherits the wrong class.

Event Timeline

seems that mw.veForAll.Target had to inherit instead of

OO.inheritClass( mw.veForAll.Target, );