codex-team / codex-team/editor.js
[bug] onChange is thrown infinitely with image-simple and mermaid plugins
- 主要言語
- TypeScript
- スター
- 31.9k
- フォーク
- 2.2k
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 1
説明
I'm working on a editorjs app synced by Yjs.
it seems to work great with most of the plugins. and sync is reported to other users, but with two plugins (image-simple & mermaid), the onChange function seems to be thrown every second .
I use the onChange function to save the editor content to a yMap of Yjs
The issue is that each of the two users, get infinite refresh of the page.
is this onChange event thrown by the editor or by the concerned plugins ? is this an issue for each plugin ?
my editor code is here https://github.com/scenaristeur/noosphere/blob/main/src/views/EditorView.vue
see demo video and working app at https://scenaristeur.github.io/noosphere/about
https://user-images.githubusercontent.com/4020744/189363842-d732cdf5-f988-46bc-9919-2d83e89ebaa2.mp4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start with the linked src/views/EditorView.vue and reproduce the behavior using the image-simple and mermaid plugins with the onChange handler and Yjs synchronization described in the issue. Compare whether repeated onChange events originate in the editor or either plugin, using the linked demo and video as behavioral references. Done means identifying the source and stopping the infinite refresh cycle.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100