Skip to content

Commit e022f1a

Browse files
authored
Fixed tinymce5 changing image issue
In TinyMCE 5, when tring 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.
1 parent 9e90227 commit e022f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ function usingTinymce3() {
760760
}
761761

762762
function usingTinymce4AndColorbox() {
763-
return !!getUrlParam('field_name');
763+
return !!getUrlParam('field_name') && getUrlParam('editor') != 'tinymce5';
764764
}
765765

766766
function usingTinymce5(){

0 commit comments

Comments
 (0)