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

multiple line break are replaced with a single line break when pasted #1114

Closed
PrakashPrabhu-sudo opened this issue Oct 27, 2022 · 2 comments
Labels
Milestone

Comments

@PrakashPrabhu-sudo
Copy link

Description
When I paste a data that contains multiple line breaks into the text-editor, only a single line break is inserted

To Reproduce
Steps to reproduce the behavior:

  1. Type two lines separated with multiple line breaks:
    image
  2. Select all and cut or copy
  3. Paste the same in the editor
  4. Multiple line breaks are replaced with a single line break
    image

Expected behavior
Pasted data to containing the line breaks like it did before

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Chrome
  • Version:
    Chrome - Version 106.0.5249.119 (Official Build) (64-bit)
    suneditor - 2.43.1
    suneditor-react - 3.4.1
@raha-taheri
Copy link

I have the same problem. In addition, the problem I observed was:
Inside the textarea, the new line is not considered as a separator of a word, and the words before and after the line stick to each other and are mistakenly interpreted as one word instead of two words. I also saw this problem in the console with getText.
Capture121

@JiHong88 JiHong88 added the bug label Nov 1, 2022
@JiHong88 JiHong88 added this to the 2.44.4 milestone Nov 1, 2022
@JiHong88
Copy link
Owner

The 2.44.4 version has been updated.
Thank you.

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

3 participants