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

Pasting content containing new lines removes the new lines #743

Closed
andylwelch opened this issue May 6, 2021 · 8 comments
Closed

Pasting content containing new lines removes the new lines #743

andylwelch opened this issue May 6, 2021 · 8 comments
Labels
Milestone

Comments

@andylwelch
Copy link
Contributor

andylwelch commented May 6, 2021

I can no longer paste content over several lines. For example pasting the following text

line1
line2
line3

Appears as:

image

@JiHong88
Copy link
Owner

JiHong88 commented May 6, 2021

The 2.38.8 version has been updated.
If this issue has not been resolved, please reopen this issue.
Thank you.

@andylwelch
Copy link
Contributor Author

andylwelch commented May 6, 2021

Hello, unfortunately the issue still exists. Now the new lines are shown as <br> tags

image

/open

@JiHong88
Copy link
Owner

JiHong88 commented May 7, 2021

@andylwelch This issue is not reproduced.
Please tell me more detail.

@andylwelch
Copy link
Contributor Author

andylwelch commented May 12, 2021

I have tested latest version, this issue still exists. I can even reproduce it on your demo site http://suneditor.com/sample/index.html

Copy the lines, then paste appears like this. I can reproduce on 2 different computers, in both Firefox (linux) and Chrome (windows):

image

@andylwelch
Copy link
Contributor Author

Are you on a Mac? My colleague just tested in Chrome for Mac and it produces a different result. Line endings work fine, but leading whitespace is not preserved.

Here is how the source appears when pasted on your sample website:

image

@JiHong88
Copy link
Owner

I have tested latest version, this issue still exists. I can even reproduce it on your demo site http://suneditor.com/sample/index.html
Copy the lines, then paste appears like this. I can reproduce on 2 different computers, in both Firefox (linux) and Chrome (windows):

Where was the text copied from?
I tested it on windows, but it still doesn't reproduced.

@andylwelch
Copy link
Contributor Author

andylwelch commented May 12, 2021

The issue occurs when copying simple multi-line text from Notepad and Notepad++ (aka plaintext).

I just tested from VSCode and Word (on Windows) and it works fine from there. I guess they have a different format of text with colours etc.

@JiHong88 JiHong88 reopened this May 13, 2021
@JiHong88 JiHong88 added this to the 2.39.0 milestone May 13, 2021
JiHong88 added a commit that referenced this issue May 13, 2021
@JiHong88
Copy link
Owner

The 2.39.0 version has been updated.
If this issue has not been resolved, please reopen this issue.
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

2 participants