froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 675 forks source link

Copy Paste from word includes extra spaces on empty lines #4348

Open joscht opened 3 years ago

joscht commented 3 years ago
Expected behavior.

When copying text from Word to Froala, empty lines should not contain an additional space.

Actual behavior.

I copied a text with empty lines (they contain no spaces in word) from word to froala (can be reproduced with the Froala Instance on https://froala.com/wysiwyg-editor/ We're currently using version 4.0.5). No matter whether I select "Keep" or "Clean" word formatting, every empty line now contains an additional space. The character count is therefore larger than displayed in word.

Word Document (word says 93 characters including spaces): image

Froala result (96 characters due to 3 extra spaces): image

Steps to reproduce the problem.
Editor version.

4.0.5

OS.

Windows 10

Browser.

Chrome 94.0.4606.81, also happens with latest Edge and Firefox versions

Recording.

-

MeghashreeAP commented 2 years ago

Thank you for your feedback. The request has been reported to the product management team for evaluation and consideration for an upcoming release.