Skip to content

Commit ab4317b

Browse files
committed
Fixed minor bugs
1 parent d60bc16 commit ab4317b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aceeditor/src/main/java/com/susmit/aceeditor/AceEditor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public void setText(String text)
346346

347347
public void setFontSize(int fontSizeInpx)
348348
{
349-
loadUrl("javascript:document.getElementById(\'editor\').style.fontSize=\'" + String.valueOf(fontSizeInpx) + "px\';");
349+
loadUrl("javascript:editor.setFontSize(" + String.valueOf(fontSizeInpx) + ");");
350350
}
351351

352352
public void insertTextAtCursor(String text)

0 commit comments

Comments
 (0)