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

Duplicate Line Breaks Removed on Paste in WYSIWYG Editor #3300

Open
urielMalnovitzer opened this issue Feb 24, 2025 · 0 comments
Open

Duplicate Line Breaks Removed on Paste in WYSIWYG Editor #3300

urielMalnovitzer opened this issue Feb 24, 2025 · 0 comments
Labels

Comments

@urielMalnovitzer
Copy link

Description: When pasting text into the WYSIWYG editor, all duplicate line breaks are removed. This issue occurs even when using plain paste (Cmd + Shift + V), which should preserve formatting. As a result, the intended spacing of the text is lost. In some cases, depending on the copy source, the text initially appears correct, but switching back and forth between the editor modes removes the multiple line breaks.
Steps to Reproduce:

  1. Copy the following text:

    Lorem ipsum: Lorem ipsum dolor sit amet
    Lorem ipsum: Consectetur adipiscing elit
    
    
    
    
    
    Lorem ipsum dolor sit amet
    
    
    Incididunt ut labore et dolore magna
    
    Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur velit
    
  2. Paste it into the WYSIWYG editor.

  3. Observe that all duplicate line breaks are removed, resulting in incorrect formatting.

Expected Behavior: The pasted text should retain its original formatting, including multiple consecutive line breaks.
Actual Behavior: Actual Behavior:
Duplicate line breaks are automatically removed, altering the structure of the text. Switching between editor modes also removes multiple line breaks in some cases.
Environment:

  • Toast UI Editor Version: 3.2.2
  • Browser: google chrome
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