Skip to content

fix: _tiptapOptions typing and fields getting overridden #398

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

Merged
merged 3 commits into from
Oct 30, 2023

Conversation

matthewlipski
Copy link
Collaborator

Currently, some fields passed in the _tiptapOptions editor option are completely overwritten, such as onCreate, and onUpdate. This PR fixes this so that both options passed in _tiptapOptions and the remaining editor options are applied. BlockNote options take priority over TipTap options for fields that take primitive values. For fields that take objects/arrays, the options are merged. Closes #389

@vercel
Copy link

vercel bot commented Oct 26, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote-website ✅ Ready (Inspect) Visit Preview Oct 30, 2023 0:23am

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.

Ability to add custom editorProps in _tiptapOptions
2 participants