I’m using tip-tap editor for the purpose of making a messaging feature required in a project I’m working. Everything seems to work in my favor except for the fact that there is no native option that I can find to upload files in it other than images.
Is it even possible to upload files in Tip-Tap editor for react?
2
Answers
tiptap editor
doesn’t supportfiles
onlyimages
, and on fast search there’s no third party extensions to do it ether.Since
tiptap
does not have support forfiles
and what you will use it for ismessaging
, I share with you a solution that I implemented for achat
.It consists of adding a
button
to upload the files in this way:Ejemplo del botón
then the button can be called using the shortcuts offered by the editor
Here then I leave the example of how I use it in the tiptap editor: https://codesandbox.io/s/adoring-grothendieck-fu82ju