Every extension
emoji
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. |