Skip to content

Conversation

@matthew-carroll
Copy link
Contributor

Fix and improve paste functionality. Add rich text paste tools to super_editor_clipboard (Resolves #2883)

Additions

  • Adds pasteHtml() extension on Editor in super_editor_clipboard.
  • Adds pasteRichTextOnCmdCtrlV() as a global keyboard shortcut for Super Editor, within super_editor_clipboard.
  • Adds content equivalency check for TableBlockNode so we can compare documents with tables in tests.

Fixes

  • Fixed a bug in pasting behavior where the first node of pasted content was getting lost.
  • Fixed a bug where pasting into an empty paragraph with a non-text node resulted in retaining the empty paragraph and putting the new node below it. Now that original empty paragraph is deleted.

CI Changes

Add super_editor_clipboard to CI analysis and testing.

@matthew-carroll matthew-carroll merged commit f74e0b2 into main Dec 13, 2025
25 checks passed
@matthew-carroll matthew-carroll deleted the 2883_fix-and-extend-pasting-behavior branch December 13, 2025 20:49
matthew-carroll added a commit that referenced this pull request Dec 13, 2025
…nality. Add rich text paste tools to super_editor_clipboard (Resolves #2883) (#2884)
matthew-carroll added a commit that referenced this pull request Dec 13, 2025
…paste functionality. Add rich text paste tools to super_editor_clipboard (Resolves #2883) (#2884) (#2885)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SuperEditor][Bug] - Improve and fix pasting behavior

2 participants