Browse Source

Merge branch 'fix/form_radio' into 'develop'

Merge of fix/form_radio to develop 修正版式正文从work粘贴后,段落首行缩进的问题

See merge request o2oa/o2oa!824
胡起 5 years ago
parent
commit
cf86686064
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();