diff --git a/docs/src/demos/Examples/MultipleEditors/index.spec.js b/docs/src/demos/Examples/MultipleEditors/index.spec.js new file mode 100644 index 000000000..e76b0e6d1 --- /dev/null +++ b/docs/src/demos/Examples/MultipleEditors/index.spec.js @@ -0,0 +1,7 @@ +context('/examples/multiple-editors', () => { + before(() => { + cy.visit('/examples/multiple-editors') + }) + + // TODO: Write tests +}) diff --git a/docs/src/demos/Examples/MultipleEditors/index.vue b/docs/src/demos/Examples/MultipleEditors/index.vue new file mode 100644 index 000000000..6c9f4fdfe --- /dev/null +++ b/docs/src/demos/Examples/MultipleEditors/index.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/docs/src/docPages/examples/multiple-editors.md b/docs/src/docPages/examples/multiple-editors.md new file mode 100644 index 000000000..ccfe1c6e1 --- /dev/null +++ b/docs/src/docPages/examples/multiple-editors.md @@ -0,0 +1,9 @@ +# Multiple editors + +The following examples has three different instances of tiptap. The first is configured to have a single paragraph of text, the second to have a task list and the third to have text. All of them are stored in a single Y.js document, which is synced with other users. + +:::warning Shared Document +Be nice! The content of this editor is shared with other users from the Internet. +::: + + diff --git a/docs/src/links.yaml b/docs/src/links.yaml index 74ea37fa6..72ea163e6 100644 --- a/docs/src/links.yaml +++ b/docs/src/links.yaml @@ -34,6 +34,8 @@ - title: Drawing link: /examples/drawing draft: true + - title: Multiple editors + link: /examples/multiple-editors - title: Guide items: