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

Spaces removed on pasting #1350

Open
oaknorton opened this issue Dec 29, 2023 · 2 comments
Open

Spaces removed on pasting #1350

oaknorton opened this issue Dec 29, 2023 · 2 comments

Comments

@oaknorton
Copy link

Describe the bug
I'm copy/pasting text into a SunEditor window and it removes spaces in the text.

To Reproduce
Steps to reproduce the behavior:

  1. Go to: https://veritypublishing.com/resource?id=MjU2&show=0&para=1
  2. Copy the last line of the first paragraph
  3. Paste it into a SunEditor window
  4. Notice how it inserts a leading line break and then removes spaces in "taught somewhat in all the" so it appears as "taughtsomewhatinallthe"

Expected behavior
It shouldn't insert a leading space or remove spaces

Screenshots
https://prnt.sc/JOYQM1_q_3-_

Desktop (please complete the following information):
Windows 11, Firefox (latest)

@redfellow
Copy link

Happens to me too. It's enough to copy paste back to back formatted words from suneditor itself.

@redfellow
Copy link

redfellow commented Jan 8, 2024

Original copied HTML:

<h2 id="sasd">sasd</h2><p>jee <strong>strreee xaaa </strong><em>basdasdasd </em><strong>asdeweafeaf </strong><sup>asdc </sup>xacsa</p>

Becomes:

<h2 id="sasd">sasd</h2><p>jee<strong>strreee xaaa</strong><em>basdasdasd</em><strong>asdeweafeaf</strong><sup>asdc</sup>xacsa</p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants