root 2 years ago
parent
commit
d5177e096a
1 changed files with 6 additions and 6 deletions
  1. 6 6
      js/Office/Word/WordEditor.js

+ 6 - 6
js/Office/Word/WordEditor.js

@@ -50,10 +50,10 @@ U.MD.O.W.E.styleStateManage = function (style) {
     }
     $("#U_MD_O_H_align" + _align).addClass("U_MD_O_H_alignFocus"); //设置当前对齐方式为选中状态
 
-    // $("#U_MD_O_SetFontSize").Child()[0].children[0].innerText = U.MD.O.W.E.fontSize["0_" + parseFloat(style["font-size"])] || U.MD.O.W.E.fontSize["1_" + parseFloat(style["font-size"])] || parseFloat(style["font-size"]); //设置字体大小
-    // $("#U_MD_O_SetFontFamily").Child()[0].children[0].innerText = style["font-family"] || ""; //设置字体样式
-    $("#U_MD_O_SetFontSize").children()[0].children[0].innerText = U.MD.O.W.E.fontSize["0_" + parseFloat(style["font-size"])] || U.MD.O.W.E.fontSize["1_" + parseFloat(style["font-size"])] || parseFloat(style["font-size"]); //设置字体大小
-    $("#U_MD_O_SetFontFamily").children()[0].children[0].innerText = style["font-family"] || ""; //设置字体样式
+    $("#U_MD_O_SetFontSize").Child()[0].children[0].innerText = U.MD.O.W.E.fontSize["0_" + parseFloat(style["font-size"])] || U.MD.O.W.E.fontSize["1_" + parseFloat(style["font-size"])] || parseFloat(style["font-size"]); //设置字体大小
+    $("#U_MD_O_SetFontFamily").Child()[0].children[0].innerText = style["font-family"] || ""; //设置字体样式
+    // $("#U_MD_O_SetFontSize").children()[0].children[0].innerText = U.MD.O.W.E.fontSize["0_" + parseFloat(style["font-size"])] || U.MD.O.W.E.fontSize["1_" + parseFloat(style["font-size"])] || parseFloat(style["font-size"]); //设置字体大小
+    // $("#U_MD_O_SetFontFamily").children()[0].children[0].innerText = style["font-family"] || ""; //设置字体样式
 
     var _type = ""; //定义类型
     switch (style["name"]) { //判断类型
@@ -74,8 +74,8 @@ U.MD.O.W.E.styleStateManage = function (style) {
             break;
     }
 
-    // $("#U_MD_O_SetTitle").Child()[0].children[0].innerText = _type || "正文"; //设置类型
-    $("#U_MD_O_SetTitle").children()[0].children[0].innerText = _type || "正文"; //设置类型
+    $("#U_MD_O_SetTitle").Child()[0].children[0].innerText = _type || "正文"; //设置类型
+    //$("#U_MD_O_SetTitle").children()[0].children[0].innerText = _type || "正文"; //设置类型
 }