From 44f84ff4a5fa1ea4ace220aee7a9a362e79e17d6 Mon Sep 17 00:00:00 2001 From: Salihu Date: Thu, 13 Nov 2025 02:00:15 +0100 Subject: [PATCH] validate emoji url --- shared/editor/nodes/Emoji.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared/editor/nodes/Emoji.tsx b/shared/editor/nodes/Emoji.tsx index ac1a265b1f..a9cfcf6493 100644 --- a/shared/editor/nodes/Emoji.tsx +++ b/shared/editor/nodes/Emoji.tsx @@ -128,7 +128,8 @@ export default class Emoji extends Extension { return { node: "emoji", getAttrs: (tok: Token) => { - if (tok.attrGet("data-url")) { + const url = tok.attrGet("data-url"); + if (url && isInternalUrl(url)) { return { "data-name": tok.markup.trim(), "data-url": tok.attrGet("data-url"),