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

Fix #3392 - Unexpected renderText() for contentful nodes #3410

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

mylesj
Copy link
Contributor

@mylesj mylesj commented Nov 15, 2022

This issue is causing a number of downstream problems for me as it impacts multiple touch points, namely:

  • editor.getText() state
  • clipboard copy-paste
  • reasoning about the selection state of the editor

I had a go at patching it myself and this appears to be the simplest solution - it might raise the question of how deeply nested nodes should be handled but I think it is reasonable to assert that: any nodes with a custom text renderer are solely responsible for how their children are rendered.

@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 9476ed6
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/65f74e5576e47200082d94b1
😎 Deploy Preview https://deploy-preview-3410--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bdbch bdbch added Status: Review Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. labels Mar 29, 2023
@mylesj
Copy link
Contributor Author

mylesj commented Mar 17, 2024

Hey folks, can we have some input on this one please? I've just updated my branch and this still appears to be relevant. Can it be rolled into your release roadmap?

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom renderText on editable node results in duplicate content copied to clipboard
2 participants