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(core): dont use selection for setContent replacement #2934

Merged
merged 1 commit into from
Jul 6, 2022

Conversation

bdbch
Copy link
Contributor

@bdbch bdbch commented Jun 27, 2022

closes #2846

prosemirror added a new warning when a selection is created that is not pointing into an inline node. This PR is fixing that warning on commands.setContent via not using a new Selection replacement but just replacing the current documents content from 0 to document.content.size with the new Document created.

@bdbch bdbch self-assigned this Jun 27, 2022
@netlify
Copy link

netlify bot commented Jun 27, 2022

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit b8f8802
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/62b95a5f1287496b4e2059cc
😎 Deploy Preview https://deploy-preview-2934--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 settings.

@distantnative distantnative mentioned this pull request Jul 3, 2022
5 tasks
@bdbch bdbch merged commit 134a4bd into main Jul 6, 2022
@bdbch bdbch deleted the fix/prosemirror-set-content-fix branch July 6, 2022 10:59
EvitanRelta added a commit to EvitanRelta/markgh that referenced this pull request Jul 12, 2022
Fixes partially #58, from the recent ueberdosis/tiptap#2934 PR fix that
has been published in '@tiptap/core@2.0.0-beta.182'.
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.

TextSelection warning from prosemirror-state 1.4.0
1 participant