An experimental implementation of how to take the open source CodeMirror code editor and enable real-time coauthoring using the Fluid Framework.
You can run this example using the following steps:
- Run
npm install
andnpm run build:fast -- --nolint
from theFluidFramework
root directory.- For an even faster build, you can add the package name to the build command, like this:
npm run build:fast -- --nolint @fluid-example/codemirror
- For an even faster build, you can add the package name to the build command, like this:
- Run
npm run start
from this directory (examples/data-objects/codemirror) and open http://localhost:8080 in a web browser to see the app running.
CodeMirror uses the following distributed data structures:
- SharedDirectory - root
- SharedString - storing codemirror text