Every extension

emoji

Behaviour takes options 0.94 kB gzipped

Emoji as you type: `:tada:` becomes ๐ŸŽ‰ the moment the closing colon lands.

Detection only, like mentions and slash commands โ€” a picker is an interface, and `suggestion({ char: ':' })` plus `searchEmoji` are what one is built on.

Adding it

import { createEditor, document, paragraph, text, emoji } from '@matrajs/core'

const editor = createEditor({
  extensions: [document, paragraph, text, emoji({ โ€ฆ })],
  element: document.querySelector('#editor'),
})

There is no separate package ยท emoji is already in @matrajs/core, and an extension you do not import is not in your bundle. document, paragraph and text are the floor every document needs.

Options

Field Type
emojis Record<string, string> Your own shortcodes, added to or overriding the built-in set.
emoticons boolean Also replace `:)`, `:(`, `<3` and friends as they are typed. Default false.

โ† All 81 extensions

Edit this page on GitHub