editor: fixing canvas.cursor getSelectionStart/getSelectionEnd
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 17 Dec 2013 10:51:29 +0000 (11:51 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 17 Dec 2013 10:51:29 +0000 (11:51 +0100)
commitfe31e3a7385bf539772d927a1dd3d9cc8ef47f0d
tree3f40472242a6efe4ca4ec16a5ba91ab10c0f2960
parentf7f6c28185f0425aa99b5476e107e0852a119443
editor: fixing canvas.cursor getSelectionStart/getSelectionEnd

Cursor now correctly recognizes when:

- selection is contained within same text node (fix)
- selection spans text elements with different parents (adding
missing implementation)
src/editor/modules/documentCanvas/canvas/canvas.js
src/editor/modules/documentCanvas/canvas/canvas.test.js