The Emoji extension renders github emojis as an inline node.
Type :
to open the autocomplete.
Custom HTML attributes that should be added to the rendered HTML tag.
Emoji.configure({
HTMLAttributes: {
class: "my-custom-class",
},
});
If you need to internationalize this extension, you can use this option.
Emoji.configure({
dictionary: {
name: "Emoji",
queryEmpty: "No results found",
},
});
Insert a new emoji element.
editor.commands.setEmoji("lemon");
:lemon:
:lemon: