codex-team / codex-team/editor.js

[Bug] Copy / Past text with multiples paragraph doesn't save the last paragraph

Open
#2,120 3 comments 3 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

Describe a bug.

Steps to reproduce:
1. Go to https://www.lipsum.com/feed/html
2. Copy 2/3 paragraph (ctrl + c)
3. Go to https://editorjs.io/
4. Remove every data of the sample
5. Past the text copied in step 2 (with ctrl + v)

Expected behavior:

The last paragraph is saved

What happened:

The last paragraph is not saved

Screenshots:

![image](https://user-images.githubusercontent.com/6905992/182865390-9c8d17fb-bce9-45c7-8fc5-8540e2ed5d0d.png)

![image](https://user-images.githubusercontent.com/6905992/182865302-7508f877-6413-452e-8815-27bf3c0575b5.png)

Device, Browser, OS:

Browser: Brave (Chromium based)
OS : ArchLinux / Mac
Editor.js version: https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest

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.