X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/d66f1a1652583c7b5dc4f29062e1ab459b90e91b..7234259fa025569d6a7682aa6c74fdcfb3ca7e17:/modules/documentCanvas/canvasManager.js?ds=sidebyside 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);