canvas manager wip - setting cursor at the beginning of a new node
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 20 Jun 2013 10:46:12 +0000 (12:46 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Thu, 20 Jun 2013 10:46:12 +0000 (12:46 +0200)
modules/documentCanvas/canvasManager.js

index 81415d1..886ce07 100644 (file)
@@ -128,7 +128,7 @@ Manager.prototype.selectFirstNode = function() {
 Manager.prototype.movecaretToNode = function(nodeElement) {\r
     var range = document.createRange();\r
     range.selectNodeContents(nodeElement[0]);\r
-    range.collapse(false);\r
+    range.collapse(true);\r
     var selection = document.getSelection();\r
     selection.removeAllRanges()\r
     selection.addRange(range);\r