X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/c80dddd346b2eec6135657ae4e047cff042fbfe5..b7266f76b76a0a67000144d2780a8f64967fafb4:/modules/documentCanvas/documentCanvas.js?ds=sidebyside diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index bd959fe..51acbf3 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -84,7 +84,7 @@ return function(sandbox) { anchor.before(newNode) else anchor.after(newNode); - this.selectNode(newNode); + this.selectNode(new wlxmlNode.Node(newNode), {moveCarret: true}); //isDirty = true; sandbox.publish('contentChanged'); }, @@ -108,7 +108,7 @@ return function(sandbox) { newNode.before(prefix); newNode.after(suffix); - this.selectNode(newNode); + this.selectNode(new wlxmlNode.Node(newNode), {moveCarret: true}); //isDirty = true; sandbox.publish('contentChanged'); } @@ -135,7 +135,7 @@ return function(sandbox) { newNode.before(prefixNode); newNode.after(suffixNode); - this.selectNode(newNode); + this.selectNode(new wlxmlNode.Node(newNode), {moveCarret: true}); //isDirty = true; sandbox.publish('contentChanged'); }