import { WebrtcProvider } from 'y-webrtc'
import { MonacoBinding } from 'y-monaco'
const provider = new WebrtcProvider('monaco', ydoc)
const type = ydoc.getText('monaco')
// There are some steps missing to initialize the editor
// The editor requires a webpack build-step
// See the complete example:
// https://github.com/yjs/yjs-demos/blob/master/monaco/monaco.js
const editor = monaco.editor.create(
document.getElementById('monaco-editor'),
const monacoBinding = new MonacoBinding(