feat: support new "block-updated" event. (#2221)#2234
feat: support new "block-updated" event. (#2221)#2234lijie1129 wants to merge 1 commit intocodex-team:nextfrom
Conversation
Why does it need to support a single eventRecently, I tried to make a binding between the YJS and EditorJS. This is to realize an idea. Please refer to here. FirstSince the synchronization EditorJS changes to the data model (YJS doc) is triggered by It is necessary to minimize unnecessary events and avoid performance waste. SecondIn the scenario of multi-person collaborative editing, directly removing and replacing the DOM of the entire block will cause the collaborator to lose the input focus, which will cause experience problems. Therefore, it is a good way to delegate the work of updating a specific block content to a specific plug-in. |
|
Thanks, @lijie1129, it is nice feature and implementation. We're working on collaborative editing, but we have not designed Tools API change yet. So adding a Do you have a workaround for a while? |
|
Hi, @neSpecc Thank you for your suggestion. 🤝 I will fix this pr later. |
0c950b6 to
5cfbc61
Compare
|
This issue has been resolved. |
#2221