提交 ecf541d1 编写于 作者: NoSubject's avatar NoSubject

修改版式正文转word,使用服务转换扩展名默认为doc

上级 fb7c260d
......@@ -3359,9 +3359,9 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
}.bind(this), function(){
var fileName = docNmae || this.json.toWordFilename || "$doc";
var n = fileName.lastIndexOf(".");
if (n==-1) fileName = fileName+".docx";
if (this.json.wordConversionType==="service"){
if (n==-1) fileName = fileName+".doc";
var content = encodeURIComponent(this.getDocumentHtml());
var body = {
......@@ -3384,6 +3384,7 @@ MWF.xApplication.process.Xform.Documenteditor = MWF.APPDocumenteditor = new Cla
}.bind(this));
if (cb) cb();
}else{
if (n==-1) fileName = fileName+".docx";
var content = this.getDocumentHtml();
o2.xDesktop.requireApp("process.Xform", "widget.OOXML", function(){
(new o2.OOXML.WML()).load(content).then(function(oo_content){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册