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

Link preview in composer #237

Open
Southclaws opened this issue Oct 17, 2024 · 0 comments
Open

Link preview in composer #237

Southclaws opened this issue Oct 17, 2024 · 0 comments

Comments

@Southclaws
Copy link
Owner

Southclaws commented Oct 17, 2024

This is something the old Slate.js editor had, but with Tiptap it looks like it's going to be a lot more complicated...

Essentially, when a link is dropped into a composer, the Link extension/plugin should make a call to POST /links { url: ... } using import { linkCreate } from "@/api/openapi-client/links"; and on its successful response, render a NodeViewWrapper with some kind of rich card preview (either a <CardBox> with the title/description/image or a <RichCard> with the correct props set)

The existing Tiptap link extension is pretty large but that might be the only way, copy that into SD and extend it with a addNodeView... needs some discovery work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant