Index: trunk/extensions/VisualEditor/modules/es/views/es.SurfaceView.js |
— | — | @@ -40,10 +40,19 @@ |
41 | 41 | this.$.append( this.documentView.$ ); |
42 | 42 | |
43 | 43 | // Interaction state |
| 44 | + |
| 45 | + // There are three different selection modes available for mouse. Selection of: |
| 46 | + // * 1 - chars |
| 47 | + // * 2 - words |
| 48 | + // * 3 - nodes (e.g. paragraph, listitem) |
| 49 | + // |
| 50 | + // In case of 2 and 3 selectedRange stores the range of original selection caused by double |
| 51 | + // or triple mousedowns. |
44 | 52 | this.mouse = { |
45 | 53 | selectingMode: null, |
46 | 54 | selectedRange: null |
47 | 55 | }; |
| 56 | + |
48 | 57 | this.cursor = { |
49 | 58 | $: $( '<div class="es-surfaceView-cursor"></div>' ).appendTo( this.$ ), |
50 | 59 | interval: null, |