How to modify codemirror so it adds more functionality

We are using CodeMirror also integrated in HumHub and it is great but offers way more and much better options. How can codemirror in GRAV be modified to have the same options - especially image and embeds handling available in GRAV.

You can check out the codemirror integrated to the social media platform HumHub here: https://humhub.com

Screen Shot 2021-10-16 at 14.52.16
Screen Shot 2021-10-16 at 14.52.44
Screen Shot 2021-10-16 at 14.52.53
Screen Shot 2021-10-16 at 14.53.05
Screen Shot 2021-10-16 at 14.53.34
Screen Shot 2021-10-16 at 14.53.46


Screen Shot 2021-10-16 at 14.54.39