mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
On annotate, get current selection from model
Fixes link annotation, and any annotation that pops up an inspector as selection is lost. Change-Id: Idd8812b05f4fddfa4e613dea28a1a8421792656d
This commit is contained in:
parent
23331abf21
commit
b5befb1d57
|
@ -307,7 +307,7 @@ ve.ce.Surface.prototype.pollChanges = function( async ) {
|
|||
};
|
||||
|
||||
ve.ce.Surface.prototype.annotate = function( method, annotation ) {
|
||||
var range = this.getSelectionRange(),
|
||||
var range = this.model.getSelection(),
|
||||
_this = this;
|
||||
|
||||
if ( method === 'toggle' ) {
|
||||
|
|
Loading…
Reference in a new issue