mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 16:20:52 +00:00
Fix link annotation from inspector by changing link type to wikiLink
Change-Id: I5b3497755c6a13e2767f59cc5c95b3e4b43b3be7
This commit is contained in:
parent
a0d5cbd42a
commit
29c76e6dd4
|
@ -83,7 +83,7 @@ ve.ui.LinkInspector.prototype.onClose = function( accept ) {
|
|||
}
|
||||
var surfaceModel = this.context.getSurfaceView().model;
|
||||
surfaceModel.annotate( 'clear', /link\/.*/ );
|
||||
surfaceModel.annotate( 'set', { 'type': 'link/internal', 'data': { 'title': title } } );
|
||||
surfaceModel.annotate( 'set', { 'type': 'link/wikiLink', 'data': { 'title': title } } );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -162,7 +162,6 @@ ve.ui.Context.prototype.openInspector = function( name ) {
|
|||
this.inspectors[name].open();
|
||||
this.positionOverlay( this.$inspectors );
|
||||
this.$inspectors.show();
|
||||
this.positionOverlay( this.$inspectors );
|
||||
//this.positionOverlay( this.inspectors[name].$ );
|
||||
this.inspector = name;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue