mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Prevent the clipboard plugin from displaying the "file type not supported" error for webp, mp4, and other file types
This commit is contained in:
parent
bd138800bc
commit
6acd092dc6
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue