UniSharp / laravel-filemanager

Media gallery with CKEditor, TinyMCE and Summernote support. Built on Laravel file system.
https://unisharp.github.io/laravel-filemanager/
MIT License
2.09k stars 720 forks source link

Fixed tinymce5 changing image issue #1148

Open Generation4 opened 2 years ago

Generation4 commented 2 years ago

In TinyMCE 5, when trying to select new image to replace exist one the function usingTinymce4AndColorbox() returns TRUE (False Positive). The bug is preventing from changing the existing image. I fixed it with extra check to insure usingTinymce4AndColorbox() is returning FALSE when TinyMCE 5 is active.