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?hp=019868549c3c14e1336d67187b70d3297be1847a 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); } };