You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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: ... }
usingimport { linkCreate } from "@/api/openapi-client/links";
and on its successful response, render aNodeViewWrapper
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.The text was updated successfully, but these errors were encountered: