You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When at least two users are collaborating (for example using the WebrtcProvider) and a user selects all and deletes the document becomes empty. This triggers the PlaceholderExtension which creates a decoration node for the placeholder message. Typing (collaborative) becomes disabled in the editing user window until they hit enter. This is because the node position / selection is confused and YJS can't sync.
After deleting the content of the document you should be able to immediately begin typing.
Actual results
User can't type until they press enter or another user inserts content collaboratively.
Possible Solution
Make it possible to remove the PlaceholderExtension from the ReactExtension core (excludePlaceholder or core: { excludeExtensions: ["history", "placeholder"] }).
Create a new option on the PlaceholderExtension called disabled. If the extension is disabled do not apply the decorations.
Implement the decoration as a Mark so it is shared (this seems very problematic and is probably not a good idea).
Screenshot(s)
The text was updated successfully, but these errors were encountered:
Summary
When at least two users are collaborating (for example using the
WebrtcProvider
) and a user selects all and deletes the document becomesempty
. This triggers thePlaceholderExtension
which creates a decoration node for the placeholder message. Typing (collaborative) becomes disabled in the editing user window until they hitenter
. This is because the node position / selection is confused and YJS can't sync.Steps to reproduce
Expected results
After deleting the content of the document you should be able to immediately begin typing.
Actual results
User can't type until they press enter or another user inserts content collaboratively.
Possible Solution
excludePlaceholder
orcore: { excludeExtensions: ["history", "placeholder"] }
).PlaceholderExtension
calleddisabled
. If the extension isdisabled
do not apply the decorations.Screenshot(s)
The text was updated successfully, but these errors were encountered: