Changes between Initial Version and Version 1 of Ticket #14933


Ignore:
Timestamp:
Dec 13, 2016, 5:26:29 PM (2 years ago)
Author:
Tade0
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14933 – Description

    initial v1  
    88
    99'''//this function does not show buggy behaviour'''
    10 
     10{{{
    1111textHelper.setSelectionRange = function (editor, range) {
    1212
    13         '''//"range" is our char index based range'''
     13        //"range" is our char index based range
    1414
    1515        var startSetted = false,
     
    4343        editor.focus();
    4444    };
    45 
     45}}}
    4646'''2. GETSELECTION'''
    4747
    4848'''//this function DOES show buggy behaviour'''
    49 
     49{{{
    5050textHelper.getSelectionRange = function (editor) {
    5151       
     
    5656        var start = 0, end = 0,
    5757
    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
    5959
    6060        selectionRange = editor.getSelection(true).getRanges(true)[0],
     
    7676       
    7777    };
    78 
     78}}}
    7979== Steps to reproduce ==
    8080
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy