editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

How to block onChange events

Open josepsolerpla opened this issue 1 year ago • 2 comments

The question.

Is possible to trigger an blocks update/insert/delete without triggering the onChange event ?

Why and how the question has come up.

I'm trying to do a co-op version of the editor.js pluggin in bubble using websockets, and as I detect the changes with the usual events with onChange I send the blocks to the websocket server so everyone in the room gets the same values, but then when the other clients recieve the blocks and insert them the onChange is triggered again as the update/insert/delete does that

josepsolerpla avatar Aug 06 '24 18:08 josepsolerpla

Will be nice to be able to send extra data to the onChange event

josepsolerpla avatar Aug 06 '24 18:08 josepsolerpla

Same need here!

AlexVFX20032 avatar Aug 07 '24 09:08 AlexVFX20032