codex-team / codex-team/editor.js

Changes may not always fire events

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

Description

There is several cases in which changes in editor may not fire corresponding events. The absence of events make it difficult for applications that reply on events to update changes to their databases.

Steps to reproduce:
- When paste content which generates several blocks, only 'block-added' are created. 'Block-changes' should be fired too. If the block API save is called, data of an empty block is returned, instead of the pasted content.
- Create a new block by type Enter, and quickly type something on the block, 'block-added' event is not fire, but only 'block-changed'.
- When editor is empty, type on the first block does not fire 'block-added' event. I prefer to have an options to add the first block on demand.
- The similar situation occurs with the last block.

Expected behavior:
- All designated events should be fired, and let applications to discard uninterested events.

Screenshots:

Device, Browser, OS: Windows

Editor.js version: 2.26.5

Plugins you use with their versions:

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.