signavio / react-mentions

@mention people in a textarea
https://react-mentions.vercel.app
Other
2.43k stars 566 forks source link

unable to paste images into the Textarea #645

Open elijahiuu opened 1 year ago

elijahiuu commented 1 year ago

I wanted to add the ability to paste images into the InputMentions. But it is not possible on iOS. It works on desktop fine, as long as I register 'paste' even handler anywhere, on the document, on the textarea, it all works - I get a paste event. But on iOS, you would not even get a "paste" context menu, unless the intput field is not an input field, but a

I know this is a huge ask, but is there a way react-mentions could be changed to use a div instead?

hakimassouane2 commented 1 month ago

Do you have any news about that please @elijahiuu, or did someone ever achieve this ? I'm looking for a way to do that