Replies: 4 comments 7 replies
-
Moved this to a discussion, as this is not an issue with the package |
Beta Was this translation helpful? Give feedback.
-
Based on what I see here https://tiptap.dev/api/nodes/mention It would be really same instead of jsx and react renderer you would be using svelte component and svelte renderer, something like Rendering the component import MentionList from './MentionList.svelte'
const mentionListComponent = new MentionList(props)
const renderer = SvelteRenderer(mentionListComponent, {element: yourDomHere }) To update props renderer.updateProps(props) others are just tiptap stuff. I haven't tried this as I do not have enough time, but I believe the implementation is failrly similar and straightforward. May be i will give it a shot sometime next week |
Beta Was this translation helpful? Give feedback.
-
@sibiraj-s I found another project implementing suggestion into svelte: Might be some inspiration here |
Beta Was this translation helpful? Give feedback.
-
Hey, I am implementing the Mention extension using this discussion as a guideline. Nearly everything works as expected, but the query text used to filter suggestions remains part of the editor content rather than being replaced by the inserted Mention. I set up a minimal reproduction. Any thoughts on what's going wrong? |
Beta Was this translation helpful? Give feedback.
-
Similar to BubbleMenu, the Suggestion/Mention extension require injecting in a custom component. I played around with trying to get
SvelteRender
to work injecting a component in but I'm not smart enough with Svelte to figure this out.Beta Was this translation helpful? Give feedback.
All reactions