Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 712 Bytes

emoji.md

File metadata and controls

54 lines (37 loc) · 712 Bytes

Emoji extension

The Emoji extension renders github emojis as an inline node.

Type : to open the autocomplete.

Options

HTMLAttributes

Custom HTML attributes that should be added to the rendered HTML tag.

Emoji.configure({
  HTMLAttributes: {
    class: "my-custom-class",
  },
});

dictionary

If you need to internationalize this extension, you can use this option.

Emoji.configure({
  dictionary: {
    name: "Emoji",
    queryEmpty: "No results found",
  },
});

Commands

setEmoji()

Insert a new emoji element.

editor.commands.setEmoji("lemon");

InputRules

:lemon:

Markdown

:lemon: