From 6acd092dc642e5b4af55606f773173944949d1ce Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Wed, 24 Apr 2024 23:31:37 +0900 Subject: [PATCH] Prevent the clipboard plugin from displaying the "file type not supported" error for webp, mp4, and other file types --- .../js/plugins/ckeditor/ckeditor/plugins/rx_upload/plugin.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/js/plugins/ckeditor/ckeditor/plugins/rx_upload/plugin.js b/common/js/plugins/ckeditor/ckeditor/plugins/rx_upload/plugin.js index 62391fed0..5afe6ca3a 100644 --- a/common/js/plugins/ckeditor/ckeditor/plugins/rx_upload/plugin.js +++ b/common/js/plugins/ckeditor/ckeditor/plugins/rx_upload/plugin.js @@ -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. */