Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When pasting multiple rows from whatsapp/facebook the break lines disappear #2803

Open
yim222 opened this issue Aug 3, 2024 · 0 comments
Open
Labels

Comments

@yim222
Copy link

yim222 commented Aug 3, 2024

Describe a bug.
I am trying to add some simple editor to my website, for adding some text by user.
When I'm copying some text from whatsapp/facebook, and it's have some style and multiple rows - after pasting all the text gathers into one row.

I don't know why it happens at other post that I've tested it doesn't occur. Maybe it's because the text post pasted from other source.

(the text are in Hebrew but it doesn't matter,
For example this text from facebook:
image

looks at the editor:

image

and the inspector:
image

Steps to reproduce:

  1. Go to this post at facebook (occurs at other posts too)
    https://www.facebook.com/groups/socialevents222/posts/1542106200077418
  2. Copy the text
  3. Paste in inside some editor you have created
  4. See how the text becomes one row.

Expected behavior:
The text should keep the lines separation and all added style.

Screenshots:
See above at the bug description
Device, Browser, OS:

PC intel, google-chrome. windows

Editor.js version:
"@editorjs/editorjs": "^2.30.2",
Plugins you use with their versions:

"@editorjs/header": "^2.8.7",

Header

@yim222 yim222 added the bug label Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant