- setNodeElement: function(nodeElement) {
- view.find('.rng-module-nodePane-tagSelect').val(nodeElement.getWlxmlTag());
+ setNodeElement: function(wlxmlNodeElement) {
+ var module = this;
+ if(!currentNode) {
+ wlxmlNodeElement.document.on('change', function(event) {
+ if(event.type === 'nodeAttrChange' && event.meta.node.sameNode(currentNode)) {
+ module.setNodeElement(currentNode);
+ }
+ });
+ }
+
+ view.find('.rng-module-nodePane-tagSelect').val(wlxmlNodeElement.getTagName());