My startposition gets changed when I select some text with "shift + arrow_left" let me explain in example:
Example: - contenteditable div - inserted charcode 0182 (¶) by myself = the variable: hardReturn
text in div: test¶ abc
code on key up + arrow_left:
var myRange = document.selection.createRange();
myRange.moveStart('character', -1);
var charVoor = myRange.text.substring(0, 1);
if(charVoor == hardReturn){
myRange.moveEnd('character', -1);
myRange.select();
}else{
}
So my problem: my cursor is between "b" and "c", i start selecting... I got "ab" under selection, then I do another selection to the left, my selection will jump automaticly before the "¶", but after that my startposition of my selection is before "¶" and not between "b" & "c" where I started.