codex-team / codex-team/editor.js

DispatchData on block not working within a second after editor created

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

Description

It is because of this branch: https://github.com/codex-team/editor.js/pull/2430
window.requestIdleCallback delays event binding and if we call dispatch data inside of block within 1 second after it was added to dom - it will not working.

Screenshots:

CleanShot 2023-09-08 at 18 15 31
CleanShot 2023-09-08 at 18 16 05
CleanShot 2023-09-08 at 18 16 14

Device, Browser, OS:
MacOS Ventura, Chrome 116.0.5845.110

Editor.js version:
Latest

Plugins you use with their versions:

](https://github.com/codex-team/editor.js/pull/2430)

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.