Bugzilla – Attachment 140607 Details for
Bug 31558
Upgrade of TinyMCE broke image drag and drop
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31558: Fix image drag and drop in TinyMCE
Bug-31558-Fix-image-drag-and-drop-in-TinyMCE.patch (text/plain), 1.53 KB, created by
Fridolin Somers
on 2022-09-13 20:33:03 UTC
(
hide
)
Description:
Bug 31558: Fix image drag and drop in TinyMCE
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-09-13 20:33:03 UTC
Size:
1.53 KB
patch
obsolete
>From 16b4802fadab4ee45538cb51dbe3da6c1686652b Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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 ! >--- > .../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 070b3063d5..d8613f91fd 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 >@@ -724,6 +724,7 @@ > so We don't need to keep track of it */ > let editor = tinyMCE.init({ > branding : false, >+ block_unsupported_drop : false, > content_css : "[% interface | html %]/[% theme | html %]/css/tinymce.css", > custom_elements:"style,link,~link", > extended_valid_elements:"style,link[href|rel]", >-- >2.35.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31558
:
140607
|
140609
|
140686