codex-team / codex-team/editor.js

Render function not clearing existing blocks.

Open
#2,439 5 comments 2 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

When using the render function, it doesn't seem to clear old data but creates duplicate blocks.

https://editorjs.io/blocks/#render states: `Method removes all Blocks and fills with new passed JSON data`

Steps to reproduce:
call the render function twice closely after each other

Expected behavior:
only show default block once.

Screenshots:
![grafik](https://github.com/codex-team/editor.js/assets/22577866/b36dcf50-0416-41fb-a485-4d74f1c5e508)

Editor.js version: latest

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.