Changes between Initial Version and Version 1 of Ticket #14933
- Timestamp:
- Dec 13, 2016, 5:26:29 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14933 – Description
initial v1 8 8 9 9 '''//this function does not show buggy behaviour''' 10 10 {{{ 11 11 textHelper.setSelectionRange = function (editor, range) { 12 12 13 '''//"range" is our char index based range'''13 //"range" is our char index based range 14 14 15 15 var startSetted = false, … … 43 43 editor.focus(); 44 44 }; 45 45 }}} 46 46 '''2. GETSELECTION''' 47 47 48 48 '''//this function DOES show buggy behaviour''' 49 49 {{{ 50 50 textHelper.getSelectionRange = function (editor) { 51 51 … … 56 56 var start = 0, end = 0, 57 57 58 '''//This is where the buggy behaviour occurs, this indexes don't always match those of the node that is selected (or where the cursor is), in the editable part of the editor'''58 //This is where the buggy behaviour occurs, this indexes don't always match those of the node that is selected (or where the cursor is), in the editable part of the editor 59 59 60 60 selectionRange = editor.getSelection(true).getRanges(true)[0], … … 76 76 77 77 }; 78 78 }}} 79 79 == Steps to reproduce == 80 80