Prevent the clipboard plugin from displaying the "file type not supported" error for webp, mp4, and other file types

This commit is contained in:
Kijin Sung 2024-04-24 23:31:37 +09:00
parent bd138800bc
commit 6acd092dc6

View file

@ -7,6 +7,11 @@ CKEDITOR.plugins.add('rx_upload', {
init: function(editor) {
/**
* Prevent the clipboard plugin from interfering with file type support.
*/
editor.plugins.clipboard._supportedFileMatchers.unshift(function() { return true; });
/**
* The main event handler for paste and drop.
*/