From ee132c08083aecd8842cab60921a5cfb012f19cf Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Tue, 13 Sep 2022 10:27:39 -1000 Subject: [PATCH] Bug 31558: Fix image drag and drop in TinyMCE Bug 26949 upgraded JS lib TinyMCE to 5.9.2 This version has a known issue on images drag and drop : https://stackoverflow.com/questions/64782955/tinymce-inline-drag-and-drop-image-upload-not-working Test plan : 1) Go to Tools > HTML customizations 2) Create a new entry (not using text editor) 3) Drag and drop an image => Without patch you see an error message from TinyMCE 'Dropped file type is not supported' => With patch : It works ! Signed-off-by: David Nind Signed-off-by: Lucas Gass Signed-off-by: Tomas Cohen Arazi (cherry picked from commit d0f09eaa6412eb83ebe7e17faa550628fa7e6cab) Signed-off-by: Lucas Gass (cherry picked from commit 278cd8b827f13a68f3375f828483d40d5eaa7b31) Signed-off-by: Arthur Suzuki --- .../intranet-tmpl/prog/en/modules/tools/additional-contents.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt index de322eab51..f3fac96fce 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt @@ -635,6 +635,7 @@ force_p_newlines : false, forced_root_block : '', branding : false, + block_unsupported_drop : false, relative_urls : false, content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css", menubar : "file edit view insert format tools table", -- 2.39.5