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:
Rob Moen 2012-04-11 14:14:38 -07:00
parent 23331abf21
commit b5befb1d57

View file

@ -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' ) {