From 21f5b21a44641ccd96582e0e5ebaddd2d657c867 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Wed, 23 Oct 2013 11:27:45 +0200 Subject: [PATCH 1/1] wip: canvas reacts to nodeTagChange 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 fb6a2de..cbb582d 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js @@ -30,6 +30,10 @@ var handlers = { var canvasNode = utils.findCanvasElement(event.meta.node); canvasNode.setWlxmlClass(event.meta.newVal); } + }, + nodeTagChange: function(event) { + var canvasNode = utils.findCanvasElement(event.meta.node); + canvasNode.setWlxmlTag(event.meta.newTagName); } }; -- 2.20.1