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
A few months ago, I started trying to introduce editorjs into multi-person collaboration scenarios and tried to connect with another crdt framework yjs.
When I tried to introduce editorjs into a multi-person collaboration scenario again, I encountered another problem that confused me:
A block with empty content will be judged as invalid by editorjs (implemented by each block tool in its own validate method).
Stand-alone offline scenario
This works fine and the user doesn't have to worry about empty blocks
Multi-person online collaboration scenario
When one of the users creates an empty block, if other users cannot see the empty block (because the editorjs.save method will not return invalid blocks), it may cause problems in achieving data consistency across multiple peers. More challenges.
All online users can see the created empty blocks in real time, which is also intuitive.
personal suggestion
Therefore, my personal thought is: Is it reasonable to adjust the judgment of empty blocks from invalid to valid?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
background
A few months ago, I started trying to introduce
editorjs
into multi-person collaboration scenarios and tried to connect with another crdt frameworkyjs
.Please see here for details: detail
When I tried to introduce editorjs into a multi-person collaboration scenario again, I encountered another problem that confused me:
A block with empty content will be judged as invalid by editorjs (implemented by each block tool in its own validate method).
Stand-alone offline scenario
This works fine and the user doesn't have to worry about empty blocks
Multi-person online collaboration scenario
When one of the users creates an empty block, if other users cannot see the empty block (because the editorjs.save method will not return invalid blocks), it may cause problems in achieving data consistency across multiple peers. More challenges.
All online users can see the created empty blocks in real time, which is also intuitive.
personal suggestion
Therefore, my personal thought is: Is it reasonable to adjust the judgment of empty blocks from invalid to valid?
Beta Was this translation helpful? Give feedback.
All reactions