Browse Source

修正版式正文从work粘贴后,段落首行缩进的问题

huqi 5 years ago
parent
commit
4147608839
1 changed files with 6 additions and 2 deletions
  1. 6 2
      o2web/source/x_component_process_Xform/Documenteditor.js

+ 6 - 2
o2web/source/x_component_process_Xform/Documenteditor.js

@@ -1690,8 +1690,12 @@ debugger;
                     tmp.set("html", html);
                     var pList = tmp.getElements("p");
                     pList.each(function(p, i){
-                        var textIndent = p.getStyle("text-indent");
-                        if (textIndent.toInt()) p.appendText("  ","top");
+                        if (Browser.name=="ie"){
+                            p.appendText("  ","top");
+                        }else{
+                            var textIndent = p.getStyle("text-indent");
+                            if (textIndent.toInt()) p.appendText("  ","top");
+                        }
                     });
                     e.data.dataValue = tmp.get("html");
                     tmp.destroy();