Re-disable clipboard_handleImages

This commit is contained in:
Kijin Sung 2024-04-25 00:00:29 +09:00
parent 516fd738f2
commit b817b85989

View file

@ -8,9 +8,12 @@ CKEDITOR.plugins.add('rx_upload', {
init: function(editor) {
/**
* Prevent the clipboard plugin from displaying the "file type not supported" error.
* Prevent the clipboard plugin from interfering with us.
*/
editor.plugins.clipboard._supportedFileMatchers.unshift(function() { return true; });
if (editor.config.clipboard_handleImages) {
editor.config.clipboard_handleImages = false;
}
/**
* The main event handler for paste and drop.