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

20 lines
818 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.
If you want to give it a shot yourself, you could start altering the [`Mention`](/api/nodes/mention) node. This uses the [`Suggestion`](/utilities/suggestion) utility, which should help with an autocomplete and such things.
2021-02-06 03:37:09 +08:00
:::pro Fund the development ♥
2021-02-12 22:02:40 +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 open-source](/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().insertText('✨').run()
```
<demo name="Nodes/Emoji" />