Vanessa 2025-01-12 16:58:14 +08:00
parent dabcc89a60
commit f2ba1da9c0

View file

@ -2610,7 +2610,7 @@ export class WYSIWYG {
}
const emojiElement = hasTopClosestByClassName(event.target, "emoji");
if (!event.shiftKey && !ctrlIsPressed && emojiElement) {
if (!protyle.disabled && !event.shiftKey && !ctrlIsPressed && emojiElement) {
const nodeElement = hasClosestBlock(emojiElement);
if (nodeElement) {
const emojiRect = emojiElement.getBoundingClientRect();