codex-team / codex-team/editor.js

How to block onChange events

Open
#2,805 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
31.9k
Forks
2.2k
Avg merge
1d 1h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.