Skip to content

Approach to drag and drop uploading of images? #2167

Answered by zurfyx
fdemian asked this question in Q&A
Discussion options

You must be logged in to vote

The approach you listed looks reasonable to me, we plan to work on drag & drop support for text, images and similar but it's still on the todo list (https://github.com/facebook/lexical/issues?q=is%3Aissue+drag).

Lexical currently offers a command to handle the drop event -> DROP_COMMAND. You can potentially registerCommandListener this command and handle the event there. The rest would be the same!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thegreatercurve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants