-
Notifications
You must be signed in to change notification settings - Fork 2k
feat: Add support for gifs in lexical #1873
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
feat: Add support for gifs in lexical #1873
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
* Add a button to insert a sample gif in the insert menu
* Add a sample gif
* Add gif icon
d7bc076 to
5a7e286
Compare
|
Thanks for this. How is it different from just using the gif URL on the insert image workflow though? |
@trueadm - I am working on a complete feature to introduce adding gifs to the editor using the GIPHY API, where we can have a modal that displays the gifs to be selected from. As suggested by @zurfyx I am raising the first PR to only add a hard-coded gif: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you! :)
|
That's awesome! Should we make the gif a bit smaller if we're planning to delete it later? It's 2MB that will sit in the git history forever |
|
Also, what I meant for the first PR is whether we can display the gif just like we'd use the Giphy API but no objections for this as a first PR :) |
3df89a7 to
d1a6164
Compare
|
@zurfyx - Optimised the gif! I will start work on the API integration from the next PR onwards! |
|
Maybe this can help? https://sergiop.github.io/react-giphy-searchbox/ |
|
Does this only add support for gifs in the playground and not as a plugin? |
Changelog:
Relates to - #1820
Screen recording:
gif-recording.mov