wip: canvas reacts to nodeTagChange event
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Wed, 23 Oct 2013 09:27:45 +0000 (11:27 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Mon, 2 Dec 2013 13:50:52 +0000 (14:50 +0100)
src/editor/modules/documentCanvas/canvas/wlxmlListener.js

index fb6a2de..cbb582d 100644 (file)
@@ -30,6 +30,10 @@ var handlers = {
             var canvasNode = utils.findCanvasElement(event.meta.node);
             canvasNode.setWlxmlClass(event.meta.newVal);
         }
             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);
     }
 };
 
     }
 };