Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r34214 -r34222 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 34214) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 34222) @@ -4818,27 +4818,39 @@ }], buttons: [{ text: '预览', - handler: function () { - previewWangEditor(title); + handler: function (that) { + that.disable(true); + top.document.getElementById('wangEditorIframe').contentWindow.document.getElementById('btn').click(); + setTimeout(function () { + var html = top.document.getElementById('wangEditorIframe').contentWindow.document.getElementById('getHtml').value; + top.Ext.getCmp('previewNote').setValue(html); + previewWangEditor(title); + that.enable(); + }, 1000); } }, { text: '保存', - handler: function () { + id: 'saveEditor', + handler: function (that) { + that.disable(true); top.document.getElementById('wangEditorIframe').contentWindow.document.getElementById('btn').click(); setTimeout(function () { var html = top.document.getElementById('wangEditorIframe').contentWindow.document.getElementById('getHtml').value; top.Ext.getCmp('note').setValue(html); + that.enable(); }, 1000); } }, { text: '保存并关闭', - handler: function () { + handler: function (that) { + that.disable(true); top.document.getElementById('wangEditorIframe').contentWindow.document.getElementById('btn').click(); top.Ext.MessageBox.wait('保存中,请稍候……', '请等待'); setTimeout(function () { var html = top.document.getElementById('wangEditorIframe').contentWindow.document.getElementById('getHtml').value; top.Ext.getCmp('note').setValue(html); hideMessageBox(true); + that.enable(); win.close(); }, 1000); }