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

Add option to disable individual built in extensions #855

Closed
wants to merge 6 commits into from

Conversation

fridaystreet
Copy link
Contributor

@fridaystreet fridaystreet commented Jun 20, 2024

Without completely needing to refactor the way tiptap extensions and core blocknote extensions are added, this should be fairly simple approach to just allow a list of extension names to be passed in that will then be removed from the inbuiult extensions before being passed to tiptap.

This will allow you to the override these extensions if you wish without completely disbaling blocknote via

const editor = useCreateBlockNote({
    disableBlockNoteExtensions:['link'],
    _tiptapOptions: {
      extensions: [
        Link,
      ]
    }
  })

Copy link

vercel bot commented Jun 20, 2024

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

Name Status Preview Updated (UTC)
blocknote ❌ Failed (Inspect) Jun 20, 2024 10:12am

Copy link

vercel bot commented Jun 20, 2024

@fridaystreet is attempting to deploy a commit to the TypeCell Team on Vercel.

A member of the Team first needs to authorize it.

@fridaystreet
Copy link
Contributor Author

Apologies I closed this as I raised it as a different PR without all the unclean commits. I should have left a comment

This is the newer one that you merged. #858

@matthewlipski
Copy link
Collaborator

No worries, I figured as much haha. Next time don't worry about having messy commits btw, we always squash when merging PRs either way👍

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.

None yet

2 participants