-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Barebones core editor #1920
Comments
Do you want to disable all core extensions or just a few some specific ones? |
Pretty much all core extensions yes, I want to be able to pick exactly what I need for performance reasons in my application. eg. Because I have many editors in the page, having a centralised place with all the keymap/paste events is necessary. I think focus events are fine? Just having issues with too many keymap/paste firing |
what about core commands? these are registered by an extension too. maybe it would make sense to export the core extensions, so you could use them if needed. |
The ones I've been using is set/toggle node and focus, but I agree exporting the core extensions and then I can pick and chose what I need |
What should the flag be called? @philippkuehn? I'll raise a PR |
great! since we have |
The problem I am facing
I'm not able to get a barebones editor, the current base editor (without any extensions) still adds a few core extensions regardless. I need this to have more control over what event listeners are being started
https://github.com/ueberdosis/tiptap/blob/main/packages/core/src/Editor.ts#L222
The solution I would like
An option flag to disable this.
Alternatives I have considered
Fork @tiptap/core
I can do this myself, just wanted to know if you'd welcome a PR and what the name for that flag would be?
The text was updated successfully, but these errors were encountered: