From adbb11ecf129208fb5e969f131eec1ce98b32b4a Mon Sep 17 00:00:00 2001 From: michaelkacher Date: Thu, 21 Jun 2018 20:10:51 -0500 Subject: [PATCH] Set the fontFamily on the instantiation of the monaco editor. This resolves a bug in windows where the cursor gets placed to the left of where it should be. --- pages/editor/editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/editor/editor.js b/pages/editor/editor.js index 5764c81..9ddc712 100644 --- a/pages/editor/editor.js +++ b/pages/editor/editor.js @@ -65,7 +65,8 @@ amdRequire(['vs/editor/editor.main'], function() { editor = monaco.editor.create(container, { value: initial.value || '', language: initial.lang || 'javascript', - theme: "vs-dark" + theme: "vs-dark", + fontFamily: "Fira Code" }); if (initial.loc) {