I'm trying to add a custom button nearby the Add media on the wordpress Add and Edit Post/Page.
How can I do that?
Thank you very much for your help!
You need to use a few hooks for that.
You can refer this blog
Also you can refer mike's answer, where he is trying to solve a similar problem.