jodit icon indicating copy to clipboard operation
jodit copied to clipboard

The video plugin only support content from youtube and vimeo

Open YaoYao-dd opened this issue 6 months ago • 0 comments

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 { /** * Options specifies the additional logic for convertMediaUrlToVideoEmbed feature. */ video_additional_link_parser: { "siteUrlA": function_fromlink_to_iframeA(), "siteUrlB": function_fromlink_to_iframeB(), ..... }; }


Actual behavior:

YaoYao-dd avatar Aug 16 '24 01:08 YaoYao-dd