From: Aleksander Ɓukasz Date: Thu, 6 Jun 2013 11:03:05 +0000 (+0200) Subject: fix in documentCanvas module X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/5d5c067b7e0d6523a16e73f79b0dc4b70ba6baa7?ds=sidebyside fix in documentCanvas module --- diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index 7e7fdf0..93d1866 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -92,7 +92,7 @@ return function(sandbox) { anchor.before(newNode) else anchor.after(newNode); - mediator.nodeCreated(newNode); + this.selectNode(newNode); //isDirty = true; sandbox.publish('contentChanged'); }, @@ -115,7 +115,8 @@ return function(sandbox) { $(node).replaceWith(newNode); newNode.before(prefix); newNode.after(suffix); - mediator.nodeCreated(newNode); + + this.selectNode(newNode); //isDirty = true; sandbox.publish('contentChanged'); } @@ -141,7 +142,8 @@ return function(sandbox) { node.replaceWith(newNode); newNode.before(prefixNode); newNode.after(suffixNode); - mediator.nodeCreated(newNode); + + this.selectNode(newNode); //isDirty = true; sandbox.publish('contentChanged'); }