Skip to content

Commit

Permalink
An editor is born
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg committed Aug 31, 2017
1 parent 75f8dd8 commit c199638
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"license": "ISC",
"devDependencies": {
"electron": "1.7.5"
},
"dependencies": {
"monaco-loader": "^0.8.2"
}
}
13 changes: 12 additions & 1 deletion src/renderer/renderer.js
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
console.log('Hello World!')
const loadMonaco = require('monaco-loader')

loadMonaco().then((monaco) => {
const element = document.querySelector('#container')
const options = {
language: 'javascript',
theme: 'vs-dark',
automaticLayout: true
}

const editor = monaco.editor.create(element, options)
})

0 comments on commit c199638

Please sign in to comment.