|
|
@ -61,8 +61,7 @@ class EmojiNode extends DecoratorNode<JSX.Element> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static importJSON(serializedNode: SerializedEmojiNode): EmojiNode {
|
|
|
|
static importJSON(serializedNode: SerializedEmojiNode): EmojiNode {
|
|
|
|
const { name, src } =
|
|
|
|
const { name, src } = serializedNode;
|
|
|
|
serializedNode;
|
|
|
|
|
|
|
|
const node = $createEmojiNode(name, src);
|
|
|
|
const node = $createEmojiNode(name, src);
|
|
|
|
return node;
|
|
|
|
return node;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -84,6 +83,10 @@ class EmojiNode extends DecoratorNode<JSX.Element> {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getTextContent(): string {
|
|
|
|
|
|
|
|
return this.__name;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
decorate(): JSX.Element {
|
|
|
|
decorate(): JSX.Element {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Emoji src={this.__src} alt={this.__name} className='emojione h-4 w-4' />
|
|
|
|
<Emoji src={this.__src} alt={this.__name} className='emojione h-4 w-4' />
|
|
|
|