tiptap/docs/src/docPages/api/nodes/emoji.md

20 lines
822 B
Markdown
Raw Normal View History

2021-01-18 21:39:26 +08:00
# Emoji
2021-03-31 02:45:48 +08:00
## Support for emojis
There is no extension or example yet, but its definitely on our list to build a dedicated extension to add emoji support.
2021-04-09 05:00:01 +08:00
If you want to give it a shot yourself, you could start altering the [`Mention`](/api/nodes/mention) node. This uses the [`Suggestion`](/api/utilities/suggestion) utility, which should help with an autocomplete and such things.
2021-03-31 02:45:48 +08:00
2021-02-06 03:37:09 +08:00
:::pro Fund the development ♥
2021-03-31 03:53:29 +08:00
We need your support to maintain, update, support and develop tiptap 2. If youre waiting for this extension, [become a sponsor and fund our work](/sponsor).
2021-01-18 21:39:26 +08:00
:::
2021-03-31 02:45:48 +08:00
## Bring your own emoji picker
You can use any emoji picker, or build your own. Just use [commands](/api/commands) to insert the picked emojis.
```js
this.editor.chain().focus().insertContent('✨').run()
2021-03-31 02:45:48 +08:00
```
<demo name="Nodes/Emoji" />