Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Set the fontFamily on the instantiation of the monaco editor. #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Set the fontFamily on the instantiation of the monaco editor. This re…
…solves a bug in windows where the cursor gets placed to the left of where it should be.
  • Loading branch information
michaelkacher committed Jun 22, 2018

Verified

This commit was signed with the committer’s verified signature.
commit adbb11ecf129208fb5e969f131eec1ce98b32b4a
3 changes: 2 additions & 1 deletion pages/editor/editor.js
Original file line number Diff line number Diff line change
@@ -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) {