Skip to content

Commit

Permalink
fix: Image properties context menu option appears even if the selecti…
Browse files Browse the repository at this point in the history
…on is not an image - EXO-72349  (#2368)

(cherry picked from commit 38881e3)
  • Loading branch information
hakermi authored and Jihed525 committed Jun 13, 2024
1 parent 7e1f304 commit 3622371
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

if ( editor.contextMenu ) {
editor.contextMenu.addListener( function( element ) {
if ( element) {
if (!element?.is('body') && element?.$?.querySelector('img[data-plugin-name=selectImage]')) {
return { selectImageItem: CKEDITOR.TRISTATE_OFF };
}
});
Expand Down

0 comments on commit 3622371

Please sign in to comment.