editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

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

Open Matsa59 opened this issue 3 years ago • 1 comments

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

image

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:

Matsa59 avatar Aug 04 '22 14:08 Matsa59

The same situation

mlshvdv avatar Aug 30 '22 08:08 mlshvdv

same

pisarevamarina avatar Nov 21 '22 09:11 pisarevamarina

Workaround : save 2 times (yeah ...)

let savedData = await api.saver.save();
savedData = await api.saver.save();

Matsa59 avatar Mar 01 '23 19:03 Matsa59