npm i monaco-editor yjs y-monaco
Unfortunately, we can't show a live-code example on this website because the editor requires a build-step that online-IDEs don't support. Maybe you can give it a try? Anyway, we still have a live demo available on a different website (simply open it in two different tabs).
The yjs-demos repository contains several demos. Simply download the repository you are interested in (e.g. the
monaco folder) and run
npm install && npm start to run the demo.