-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[Bug][v3.31.1] iOS and Android that will break node views on enter #8348
Copy link
Copy link
Open
Labels
area: coreCore editor engine and ProseMirror integrationCore editor engine and ProseMirror integrationarea: editorEditor behavior, commands, and transactionsEditor behavior, commands, and transactionscomplexity: hardMultiple components, research neededMultiple components, research neededimpact: mediumAffects some users or workflowsAffects some users or workflowsstatus: triageNeeds initial review and categorizationNeeds initial review and categorization
Description
Activity
Metadata
Metadata
Assignees
Labels
area: coreCore editor engine and ProseMirror integrationCore editor engine and ProseMirror integrationarea: editorEditor behavior, commands, and transactionsEditor behavior, commands, and transactionscomplexity: hardMultiple components, research neededMultiple components, research neededimpact: mediumAffects some users or workflowsAffects some users or workflowsstatus: triageNeeds initial review and categorizationNeeds initial review and categorization
Affected Packages
core
Tiptap Version
3.31.1
Browser Used
Chrome
What happened?
When implementing a code block with
NodeView, pressingenterto start a new line on mobile produces an extra blank line, and the content entered after the line break is lost.Insert a line break after the end of the first line of code.
Expected Behavior
It behaves normally when using a PC, or after downgrading to version 3.31.0.
Reproducible Example URL (Optional)
https://github.com/xiaweiss/tiptap-bug-report
Additional Context (Optional)
The relevant change is in NodeView.ts, line 297. issue #8220
tiptap/packages/core/src/NodeView.ts
Line 297 in d3bbcf4