- var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'tag' : 'class';
- sandbox.publish('nodeElementChange', attr, target.val().replace(/-/g, '.'));
+ var attr = target.attr('class').split('-')[3] === 'tagSelect' ? 'Tag' : 'Class',
+ value = target.val().replace(/-/g, '.');
+
+ if(attr === 'Class') {
+ //currentNode.document.transform('setClass', {node: currentNode, klass: value});
+ currentNode.transform('smartxml.setAttr', {name: 'class', value: value});
+ }
+ //currentNode['set' + attr](value);