$('field').change(function() {
$("input[type=submit]").removeAttr("disabled");
});,items: [{
xtype: 'textarea'
,fieldLabel: '[Desktop] - '+_('template_code')
,name: 'content'
,id: 'modx-template-descontent'
,anchor: '90%'
,height: 400
,value: this.getContent('desktop')
,listeners: { 'change': function(){
//re-enable save button here
} }
}]Ext.getCmp('modx-panel-template').markDirty();Just a rough guess... works when executed in js-console.
Ext.getCmp('modx-panel-template').markDirty();