-
Notifications
You must be signed in to change notification settings - Fork 65
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
feature: link preview #10
Comments
Hey, if you want I can create the feature about preview. |
@RaphaelMardine Thanks for your interest in the link preview feature. I'm thinking of using a service like Iframely to generate rich link previews, but I'm open to other approaches. The goal is to display metadata (title, description, image) for various link types in a card format, similar to the examples I shared. If you have alternative solutions, I'd be interested to hear your thoughts. ![]() |
I love this project! It's absolutely beautiful! Here's my current implementation for the link preview (although it's missing the menu from the image you linked, which I might add, and add to this comment later): Link.tsx
AddLink.tsx (button)
/api/link
I'm also modifying it to upload the link image to my storage bucket so I don't have to mess with my CORS and allow all. Let me know if should send the updated code. Goes without saying you are absolutely free to modify the code above and add it to this project! (you can also add it unmodified, but I haven't reviewed and properly organized it yet... and after seeing your code, I know this is too messy for you - as it is for me ahahaha) Best and thank you! I have also made a very lightweight renderer for my Tiptap editor, so I didn't have to wait for the Static Renderer on v3 and could render my stuff without an Editor instance or injecting HTML onto a div. Let me know if that could be of use to you. It's still quite rudimentary (only a few options done so far, including image but missing the link preview) but could be a starting point for sure If you have any suggestion or corrections I'd love to hear them of course! |
No description provided.
The text was updated successfully, but these errors were encountered: