Fix context menu text being different based on where right click occurred for emojis (#9215)
Co-authored-by: khuddite <biliie811028@hotmail.com>
This commit is contained in:
@@ -97,7 +97,11 @@ export const setup = (
|
||||
const isMisspelled = Boolean(params.misspelledWord);
|
||||
const isLink = Boolean(params.linkURL);
|
||||
const isImage =
|
||||
params.mediaType === 'image' && params.hasImageContents && params.srcURL;
|
||||
params.mediaType === 'image' &&
|
||||
params.hasImageContents &&
|
||||
params.srcURL &&
|
||||
!editFlags.canCopy; // emoji should not be treated as an image
|
||||
|
||||
const showMenu =
|
||||
params.isEditable || editFlags.canCopy || isLink || isImage;
|
||||
|
||||
|
Reference in New Issue
Block a user