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

Allow to provide custom extensions #5550

Open
tcitworld opened this issue Mar 22, 2024 · 1 comment
Open

Allow to provide custom extensions #5550

tcitworld opened this issue Mar 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@tcitworld
Copy link
Member

tcitworld commented Mar 22, 2024

Is your feature request related to a problem? Please describe.
When using the editor from another app with OCA.Text.createEditor, I can't provide my own extensions.

Describe the solution you'd like
A new option in the function argument object to provide a list of extensions to load. These should be passed to Editor/MarkdownContentEditor as props and injected into the tiptap editor itself.

Describe alternatives you've considered
Injecting the extension after the editor has loaded, if possible?

@juliushaertl
Copy link
Member

juliushaertl commented Mar 26, 2024

I feel this would be quite a risky exposure of tiptap "internals" that may change it behave differently between versions.

Especially when it comes to registering plugins that add custom nodes or have an influence in the editor schema.

Do you have any other concrete use cases in mind except for the placeholder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants