The emoji
node is an inline node that represents an emoji.
There are three kinds of emoji:
emoji
is an inline node.
1 2{ "type": "emoji", "attrs": { "shortName": ":grinning:", "text": "😀" } }
1 2{ "type": "emoji", "attrs": { "shortName": ":awthanks:", "id": "atlassian-awthanks", "text": ":awthanks:" } }
1 2{ "type": "emoji", "attrs": { "shortName": ":thumbsup::skin-tone-2:", "id": "1f44d", "text": "👍🏽" } }
Name | Required | Type | Value |
---|---|---|---|
type | ✔ | string | "emoji" |
attrs | ✔ | object | |
attrs.id | string | Emoji service ID of the emoji | |
attrs.shortName | ✔ | string | |
attrs.text | string |
id
is the Emoji service ID of the emoji. The value varies based on the kind, for example, standard emoji ID "1f3f3-1f308", Atlassian emoji ID "— "atlassian-<shortName>", and site emoji ID " "13d29267-ff9e-4892-a484-1a1eef3b5ca3". The value is not intended to have any user facing meaning.shortName
represent a name for the emoji, such as ":grinning:"text
represents the text version of the emoji, shortName
is rendered instead if omitted. moreRate this page: