From: Aleksander Ɓukasz Date: Thu, 20 Jun 2013 10:46:12 +0000 (+0200) Subject: canvas manager wip - setting cursor at the beginning of a new node X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/daeb3efce48907831ac2fc1b756845c9cb83cd41?ds=sidebyside;hp=d66f1a1652583c7b5dc4f29062e1ab459b90e91b canvas manager wip - setting cursor at the beginning of a new node --- diff --git a/modules/documentCanvas/canvasManager.js b/modules/documentCanvas/canvasManager.js index 81415d1..886ce07 100644 --- a/modules/documentCanvas/canvasManager.js +++ b/modules/documentCanvas/canvasManager.js @@ -128,7 +128,7 @@ Manager.prototype.selectFirstNode = function() { Manager.prototype.movecaretToNode = function(nodeElement) { var range = document.createRange(); range.selectNodeContents(nodeElement[0]); - range.collapse(false); + range.collapse(true); var selection = document.getSelection(); selection.removeAllRanges() selection.addRange(range);