xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.71k stars 354 forks source link

The video plugin only support content from youtube and vimeo #1170

Open YaoYao-dd opened 3 months ago

YaoYao-dd commented 3 months ago

Jodit Version: 4.2.27

Browser: Chrome OS: Mac Is React App:-False Reproduced on xdsoft.net: True

Code https://github.com/xdan/jodit/blob/main/src/plugins/video/config.ts

tooltip: 'Insert youtube/vimeo video'

and in convertMediaUrlToVideoEmbed, it only specifically handle the link format for youtube and vimeo

Expected behavior: it is better to allow the user to configure the video plugin to handle different video site, especially their own video website. something like: interface Config { /**


**Actual behavior:**