From 74cbf170ee1512dcebf76952a9fb51624b61191b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 19 Nov 2013 15:39:24 +0100 Subject: [PATCH 1/1] integration wip: handling nodeTextChange event --- src/editor/modules/documentCanvas/canvas/wlxmlListener.js | 4 ++++ 1 file changed, 4 insertions(+) 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()); } }; -- 2.20.1