Embedding a video player in the editor

Is there any way to embed a video player or any widget which can play videos ?

Yes, but I’m not aware of any existing reusable plugin that does this, so you’ll have to build it (probably using a node view).

Thanks for the reply ! can you provide some example/link on how to use node view for videos. That would be great as i am new to this.

If you want to embed youtube, vimeo etc. player, you can use schema and input rule to create and append fragment. At least that’s how I did it…

https://prosemirror.net/examples/upload/ https://prosemirror.net/examples/footnote/