Repository navigation
Replies: 2 comments
|
I guess i figured it out myself, I highjacked the import { h } from 'vue'
// ...
richtTextResolver({
renderFn: (tag, att, txt) => {
// ... any mapping logic
return h(tag, { ...att, class: 'my-map-content' }, txt)
},
tiptapExtensions: {
// Custom extensions...
}
})But tbh anyway it would be handy to have some default exports at hand. |
0 replies
|
@cewald glad you found a way to work around it! It'd be def a good improvement, and should be just a matter of re-exporting all nodes and marks. Would you like to go for that contribution? 😃 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The new implementation of TipTap is nice but kinda hard to implement if you want to extend it just a little and if you not want to build a new component for each actually already existing component. It would be super handy if the default component just would be exposed/exported through the module so i can just extend a component by smth like:
Right now, in version 4.1.0, I would have to recreate it afaik, because I cant just import the original to extend it, which creates a huuuge overhead for a task like add TailwindCSS classes to several standard components or a custom link-component that maybe just needs some aria-tags or a custom wrapper for tracking, idk if you know what I mean :)
It wouldn't be a big change and propably very helpful in general. If it helps, i can make a contribution.
All reactions