Skip to content

[Bug]:Whitespace around text is removed when pasting from external sources (e.g. Word, browser) #6254

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

Open
1 task done
jinman0826 opened this issue Apr 9, 2025 · 0 comments
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@jinman0826
Copy link

Affected Packages

tiptap/vue-3

Version(s)

2.11.5

Bug Description

When pasting text content from external sources such as Microsoft Word, Google Docs, or websites into a Tiptap editor, leading and trailing whitespaces are removed automatically.

This is particularly noticeable when copying content with intentional spacing (e.g. alignment, indentation, or formatted quotes).

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

The pasted text should preserve all leading and trailing spaces, just like how they appear in the original source.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.
@jinman0826 jinman0826 added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Apr 9, 2025
@github-project-automation github-project-automation bot moved this to Needs Triage in Tiptap: Issues Apr 9, 2025
@jinman0826 jinman0826 changed the title [Bug]: [Bug]:Whitespace around text is removed when pasting from external sources (e.g. Word, browser) Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant