docs: add the emoji extension

This commit is contained in:
Hans Pagel 2021-11-11 12:47:22 +01:00
parent 75e55e548d
commit 7a2b02bfcf
2 changed files with 1 additions and 26 deletions

View File

@ -1,24 +0,0 @@
---
description: "Not ready yet. :construction:"
icon: emotion-line
---
# Emoji
## 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`](/api/utilities/suggestion) utility, which should help with an autocomplete and such things.
:::pro Fund the development ♥
We need your support to maintain, update, support and develop Tiptap. If youre waiting for this extension, [become a sponsor and fund our work](/sponsor).
:::
## 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()
```
https://embed.tiptap.dev/preview/Nodes/Emoji

View File

@ -272,7 +272,7 @@
link: /api/nodes/document
- title: Emoji
link: /api/nodes/emoji
type: draft
type: new
- title: HardBreak
link: /api/nodes/hard-break
- title: Hashtag
@ -342,7 +342,6 @@
link: /api/extensions/collaboration-cursor
- title: Color
link: /api/extensions/color
type: new
- title: Dropcursor
link: /api/extensions/dropcursor
- title: FloatingMenu