lsc 2 rokov pred
rodič
commit
7a54c7e425
1 zmenil súbory, kde vykonal 6 pridanie a 3 odobranie
  1. 6 3
      js/Office/Word/WordEditor.js

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

@@ -50,8 +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").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"]) { //判断类型
@@ -72,7 +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").Child()[0].children[0].innerText = _type || "正文"; //设置类型
+    $("#U_MD_O_SetTitle").children()[0].children[0].innerText = _type || "正文"; //设置类型
 }