We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60bc16 commit ab4317bCopy full SHA for ab4317b
aceeditor/src/main/java/com/susmit/aceeditor/AceEditor.java
@@ -346,7 +346,7 @@ public void setText(String text)
346
347
public void setFontSize(int fontSizeInpx)
348
{
349
- loadUrl("javascript:document.getElementById(\'editor\').style.fontSize=\'" + String.valueOf(fontSizeInpx) + "px\';");
+ loadUrl("javascript:editor.setFontSize(" + String.valueOf(fontSizeInpx) + ");");
350
}
351
352
public void insertTextAtCursor(String text)
0 commit comments