From: Aleksander Ɓukasz Date: Tue, 19 Nov 2013 14:39:24 +0000 (+0100) Subject: integration wip: handling nodeTextChange event X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/74cbf170ee1512dcebf76952a9fb51624b61191b?ds=inline;hp=fea8fda1a2f6a07eac7bb37c3c40a053d398ef92 integration wip: handling nodeTextChange event --- diff --git a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js index 35bc45f..8bd05a5 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js @@ -61,6 +61,10 @@ var handlers = { nodeDetached: function(event) { var canvasNode = utils.findCanvasElementInParent(event.meta.node, event.meta.parent); canvasNode.detach(); + }, + nodeTextChange: function(event) { + var canvasElement = utils.findCanvasElement(event.meta.node); + canvasElement.setText(event.meta.node.getText()); } };