Index: trunk/extensions/VisualEditor/modules/ve/ce/ve.ce.Surface.js |
— | — | @@ -150,7 +150,7 @@ |
151 | 151 | |
152 | 152 | ve.ce.Surface.prototype.loadInsertionAnnotations = function( annotation ) { |
153 | 153 | this.insertionAnnotations = |
154 | | - this.model.getDocument().getAnnotationsFromOffset( this.getSelectionRange().to - 1 ); |
| 154 | + this.model.getDocument().getAnnotationsFromOffset( this.currentSelection.to - 1 ); |
155 | 155 | // Filter out annotations that aren't textStyles or links |
156 | 156 | for ( var i = 0; i < this.insertionAnnotations.length; i++ ) { |
157 | 157 | if ( !this.insertionAnnotations[i].type.match( /(textStyle\/|link\/)/ ) ) { |
Index: trunk/extensions/VisualEditor/modules/ve/ui/ve.ui.Context.js |
— | — | @@ -95,9 +95,6 @@ |
96 | 96 | var selection = this.surfaceView.getModel().getSelection(), |
97 | 97 | offset; |
98 | 98 | this.position = null; |
99 | | - |
100 | | - console.log( this.surfaceView.getSelectionRect() ); |
101 | | - |
102 | 99 | if ( selection.from < selection.to ) { |
103 | 100 | var $lastRange = this.surfaceView.$.find( '.es-contentView-range:visible:last' ); |
104 | 101 | if ( $lastRange.length ) { |