- //var widget = metaWidget.create({attrs:canvasNode.getMetaAttrs()});
- //widget.on('valueChanged', function(key, value) {
- // sandbox.publish('nodeChanged', key, value);
- //});
- //view.find('.metaFields').empty().append(widget.el);
+ var escapedClassName = (nodeElement.getWlxmlClass() || '').replace(/\./g, '-')
+ view.find('.rng-module-nodePane-classSelect').val(escapedClassName);
+
+ 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);