Fabian Iwand 7 năm trước cách đây
mục cha
commit
187874ceac
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Playground/js/index.js

+ 1 - 1
Playground/js/index.js

@@ -640,7 +640,7 @@
         // Fonts
         setFontSize = function (size) {
             fontSize = size;
-            document.querySelector(".view-lines").style.fontSize = size + "px";
+            jsEditor.updateOptions({fontSize: size});
             setToMultipleID("currentFontSize", "innerHTML", "Font: " + size);
         };