diff --git a/src/features/compose/editor/nodes/emoji-node.tsx b/src/features/compose/editor/nodes/emoji-node.tsx index b3a7116cf..523b225c1 100644 --- a/src/features/compose/editor/nodes/emoji-node.tsx +++ b/src/features/compose/editor/nodes/emoji-node.tsx @@ -61,8 +61,7 @@ class EmojiNode extends DecoratorNode { } static importJSON(serializedNode: SerializedEmojiNode): EmojiNode { - const { name, src } = - serializedNode; + const { name, src } = serializedNode; const node = $createEmojiNode(name, src); return node; } @@ -84,6 +83,10 @@ class EmojiNode extends DecoratorNode { return true; } + getTextContent(): string { + return this.__name; + } + decorate(): JSX.Element { return (