Index: ssts-web/src/main/webapp/js/common.js =================================================================== diff -u -r34209 -r34214 --- ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 34209) +++ ssts-web/src/main/webapp/js/common.js (.../common.js) (revision 34214) @@ -4798,6 +4798,10 @@ //显示富文本编辑器 function showWangEditor(title, id) { + if (isIE()) { + showNoteText(title, false); + return; + } var url = WWWROOT + '/common/wangEditor.jsp?id=' + id; var win = new top.Ext.Window({ title: title + '配包注意事项编辑器', @@ -4810,7 +4814,6 @@ buttonAlign: 'center', items: [{ xtype: "panel", - id: "index", html: "" }], buttons: [{ @@ -4852,5 +4855,70 @@ //预览富文本内容 function previewWangEditor(title) { var url = WWWROOT + '/common/previewWangEditor.jsp'; - openModalWindowForExt(url, {}, title + '配包注意事项', 1000, 600); + openModalWindowForExt(url, {}, title + '配包注意事项', 1000, 550); +} + +//IE配包注意事项不显示编辑器 +function showNoteText(title, isPreview) { + var content = ''; + var note = top.Ext.getCmp('note').getValue(); + if (note.split('

').length <= 1) { + content = note; + } + var win = new top.Ext.Window({ + title: title + '配包注意事项编辑器', + width: 1000, + height: 600, + autoScroll: isPreview, + isTopContainer: true, + modal: true, + resizable: false, + buttonAlign: 'center', + items: [{ + xtype: "panel", + hidden: !isPreview, + html: note + }, { + xtype: 'textarea', + name: 'hiddenNote', + id: 'hiddenNote', + emptyText: '请输入内容', + height: 506, + width: 990, + hidden: isPreview, + value: content + }], + tbar: [{ + text: 'IE浏览器不能使用富文本编辑器' + }], + buttons: [{ + text: '预览', + hidden: isPreview, + handler: function () { + previewWangEditor(title); + } + }, { + text: '保存', + hidden: isPreview, + handler: function () { + var hiddenNote = top.Ext.getCmp('hiddenNote').getValue(); + top.Ext.getCmp('note').setValue(hiddenNote); + } + }, { + text: '保存并关闭', + hidden: isPreview, + handler: function () { + var hiddenNote = top.Ext.getCmp('hiddenNote').getValue(); + top.Ext.getCmp('note').setValue(hiddenNote); + win.close(); + } + }, { + text: '取消', + hidden: isPreview, + handler: function () { + win.close(); + } + }] + }) + win.show(); } \ No newline at end of file