Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add collaboration support #6

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft

Add collaboration support #6

wants to merge 13 commits into from

Conversation

thet
Copy link
Member

@thet thet commented Feb 3, 2022

No description provided.

…o is working on what section in the same document.
In our current implementation of the collaboration mode, there is a main connection.
The main connection is the one first connecting to the collaboration server.
This one reads the text from the textarea input field (or another strucutre) and passes it to the tiptap instance.
If only the main connection updates the textdocument other clients connecting later will not overwrite the text.

All clients are syncing changes back to the textarea input.
This also means any client should be able to sumit the content back to the server.

A future addition would be to get/set the text only through the collaboration server which always has the latest state.
If this more sophisticated mehtod is really needed we will implement it later.
… DRAFT /1

NOTE: this would contradict the current mode where only what is defined
in the toolbar is actually allowed as HTML. this is limiting! better, we
define a default set of extension per mime type. this can then also be
imported in the tiptap collaboration server to construct a valid
representation of the content and be able to store that from there back
to the backend.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant