From b5befb1d574444b558b2651fcbbaf37ff81fc323 Mon Sep 17 00:00:00 2001 From: Rob Moen Date: Wed, 11 Apr 2012 14:14:38 -0700 Subject: [PATCH] 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 --- modules/ve/ce/ve.ce.Surface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/ce/ve.ce.Surface.js b/modules/ve/ce/ve.ce.Surface.js index f152fef23e..26d56734d0 100644 --- a/modules/ve/ce/ve.ce.Surface.js +++ b/modules/ve/ce/ve.ce.Surface.js @@ -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' ) {