docs: add the emoji extension
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
---
|
|
||||||
description: "Not ready yet. :construction:"
|
|
||||||
icon: emotion-line
|
|
||||||
---
|
|
||||||
|
|
||||||
# Emoji
|
|
||||||
|
|
||||||
## Support for emojis
|
|
||||||
There is no extension or example yet, but it’s 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 you’re 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
|
|
||||||
@@ -272,7 +272,7 @@
|
|||||||
link: /api/nodes/document
|
link: /api/nodes/document
|
||||||
- title: Emoji
|
- title: Emoji
|
||||||
link: /api/nodes/emoji
|
link: /api/nodes/emoji
|
||||||
type: draft
|
type: new
|
||||||
- title: HardBreak
|
- title: HardBreak
|
||||||
link: /api/nodes/hard-break
|
link: /api/nodes/hard-break
|
||||||
- title: Hashtag
|
- title: Hashtag
|
||||||
@@ -342,7 +342,6 @@
|
|||||||
link: /api/extensions/collaboration-cursor
|
link: /api/extensions/collaboration-cursor
|
||||||
- title: Color
|
- title: Color
|
||||||
link: /api/extensions/color
|
link: /api/extensions/color
|
||||||
type: new
|
|
||||||
- title: Dropcursor
|
- title: Dropcursor
|
||||||
link: /api/extensions/dropcursor
|
link: /api/extensions/dropcursor
|
||||||
- title: FloatingMenu
|
- title: FloatingMenu
|
||||||
|
|||||||
Reference in New Issue
Block a user