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 are not being preserved while copying in HTML format #4108

Open
amigup opened this issue Apr 9, 2024 · 0 comments
Open

Spaces are not being preserved while copying in HTML format #4108

amigup opened this issue Apr 9, 2024 · 0 comments

Comments

@amigup
Copy link

amigup commented Apr 9, 2024

Spacing between words are not being preserved while copying and pasting to a destination app via HTML format.

Steps for Reproduction

  1. Visit https://codesandbox.io/p/sandbox/quill-copy-space-issue-5j6t64?file=%2Fsrc%2Findex.tsx
  2. Type a word and add few spaces and type another word.
  3. Copy the message from quill Editor
  4. Paste to a app which reads the HTML format
<html>
<body>
<!--StartFragment--><span style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">FirstWord                                         AnotherWord</span><!--EndFragment-->
</body>
</html>

Expected behavior:
Spacing between word should be preserved on pasting via HTML format
image

Actual behavior:
Spacing between word are not preserved on pasting via HTML format
image

Platforms:
Chrome, windows

Version:
Quill version 1.3.1

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

No branches or pull requests

2 participants