- var widget = metaWidget.create({attrs:nodeElement.getWlxmlMetaAttrs()});
- widget.on('valueChanged', function(key, value) {
- sandbox.publish('nodeElementChange', key, value);
- });
- view.find('.metaFields').empty().append(widget.el);
+ var attrs = _.extend(wlxmlNodeElement.getMetaAttributes(), wlxmlNodeElement.getOtherAttributes());
+ var widget = metaWidget.create({attrs:attrs});
+ widget.on('valueChanged', function(key, value) {
+ wlxmlNodeElement.setMetaAttribute(key, value);
+ //wlxmlNodeElement.setMetaAttribute(key, value);
+ });
+ view.find('.metaFields').empty().append(widget.el);
+ } else {
+ view.find('.rng-module-nodePane-tagSelect').attr('disabled', true).val('');
+ view.find('.rng-module-nodePane-classSelect').attr('disabled', true).val('');
+ view.find('.metaFields').empty();
+ }
+ currentNode = wlxmlNodeElement;