[Bug]:Whitespace around text is removed when pasting from external sources (e.g. Word, browser) #6254
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
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
The text was updated successfully, but these errors were encountered: