Page MenuHomePhabricator

Link pop up not appearing in editor
Closed, ResolvedPublic

Description

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: ve.init.target.getContentApi 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 ve.init.mw.Target instead of ve.init.sa.Target

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