-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
41 changed files
with
841 additions
and
2,036 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
tasks: | ||
- init: npm install | ||
command: npm run start | ||
- init: cd demo-server && npm i && npm run dist-all | ||
command: cd demo-server && npm run start | ||
ports: | ||
- port: 8080 | ||
onOpen: open-preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
web: npm start | ||
web: cd demo-server && npm i && npm run dist-all && npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Atlaskit Demo | ||
> [y-prosemirror](https://docs.yjs.dev/ecosystem/editor-bindings/prosemirror) / [y-websocket](https://docs.yjs.dev/ecosystem/connection-provider/y-websocket) / [Live Demo](https://demos.yjs.dev/atlaskit/atlaskit.html) | ||
This is a demo of an [Atlaskit](https://atlaskit.atlassian.com/) editor that was made collaborative with Yjs & y-prosemirror. Since Atlaskit is based on ProseMirror, we simply need to add y-prosemirror to the internal ProseMirror instance. Find out more about the prosemirror binding in our [Official Docs](https://docs.yjs.dev/ecosystem/editor-bindings/prosemirror). | ||
|
||
We use the [y-websocket](https://docs.yjs.dev/ecosystem/connection-provider) provider to share document updates through a server. There are many more providers available for Yjs - try switching to another provider. [See docs](https://docs.yjs.dev/ecosystem/connection-provider). | ||
|
||
Also you could try addingh offline persistence to this demo. Wouldn't it be cool if document updates are persisted in the browser, so you can load your application load faster? Try it out: https://docs.yjs.dev/getting-started/allowing-offline-editing | ||
|
||
## Quick Start | ||
|
||
```sh | ||
npm i | ||
npm start | ||
# Project is running at http://localhost:8080/ | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"name": "prosemirror-atlaskit-demo", | ||
"name": "yjs-atlaskit-demo", | ||
"private": true, | ||
"version": "0.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"description": "Yjs ❤ Atlaskit", | ||
"scripts": { | ||
"dist": "webpack --mode=production", | ||
"start": "webpack-dev-server --open-page atlaskit.html", | ||
"postinstall": "npm run dist" | ||
"start": "webpack-dev-server --open-page atlaskit.html" | ||
}, | ||
"author": "Kevin Jahns <[email protected]>", | ||
"license": "UNLICENSE", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# ProseMirror Demo | ||
> [y-codemirror](https://docs.yjs.dev/ecosystem/editor-bindings/codemirror) / [y-websocket](https://docs.yjs.dev/ecosystem/connection-provider/y-websocket) / [Live Demo](https://demos.yjs.dev/codemirror/codemirror.html) | ||
This is a demo of a [CodeMirror 5](https://codemirror.net/) editor that was made collaborative with Yjs & y-codemirror. | ||
|
||
We use the [y-websocket](https://docs.yjs.dev/ecosystem/connection-provider) provider to share document updates through a server. There are many more providers available for Yjs - try switching to another provider. [See docs](https://docs.yjs.dev/ecosystem/connection-provider). | ||
|
||
Also you could try addingh offline persistence to this demo. Wouldn't it be cool if document updates are persisted in the browser, so you can load your application load faster? Try it out: https://docs.yjs.dev/getting-started/allowing-offline-editing | ||
|
||
## Quick Start | ||
|
||
```sh | ||
npm i | ||
npm start | ||
# Project is running at http://localhost:8080/ | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"name": "yjs-demos-codemirror", | ||
"name": "yjs-codemirror-demo", | ||
"version": "1.0.0", | ||
"description": "Yjs CodeMirror editor binding demo", | ||
"main": "index.js", | ||
"description": "Yjs ❤ Atlaskit", | ||
"scripts": { | ||
"dist": "webpack --mode=production", | ||
"start": "webpack-dev-server --open-page codemirror.html", | ||
"postinstall": "npm run dist" | ||
"start": "webpack-dev-server --open-page codemirror.html" | ||
}, | ||
"author": "Kevin Jahns <[email protected]>", | ||
"license": "UNLICENSE", | ||
|
Oops, something went wrong.