From: Aleksander Ɓukasz Date: Wed, 23 Oct 2013 09:27:45 +0000 (+0200) Subject: wip: canvas reacts to nodeTagChange event X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/21f5b21a44641ccd96582e0e5ebaddd2d657c867 wip: canvas reacts to nodeTagChange event --- 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); } };