Merge branch 'main' of github.com:ueberdosis/tiptap-next into main

This commit is contained in:
Hans Pagel
2021-01-20 11:41:10 +01:00
38 changed files with 1309 additions and 365 deletions

View File

@@ -147,6 +147,7 @@ Have a look at all of the core commands listed below. They should give you a goo
| .lift() | Removes an existing wrap. |
| .liftEmptyBlock() | Lift block if empty. |
| .newlineInCode() | Add a newline character in code. |
| .replace() | Replaces text with a node within a range. |
| .resetNodeAttributes() | Resets all node attributes to the default value. |
| .selectParentNode() | Select the parent node. |
| .setMark() | Add a mark with new attributes. |

View File

@@ -1,14 +0,0 @@
# Suggestion
:::pro Fund the development 💖
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).
:::
TODO
- mentions (as text or as/with user ID)
- hashtags (as text)
- emojis (input rule with an autocomplete popup)
- commands (can only be triggered at the beginning of a line, should trigger custom commands)
- snippets (should be able to insert multiple paragraphs)
- variables (should replaced when copied to external sources)

View File

@@ -1,7 +1,16 @@
# Mention
:::pro Fund the development 💖
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).
:::
## Installation
```bash
# with npm
npm install @tiptap/extension-mention
TODO
# with Yarn
yarn add @tiptap/extension-mention
```
## Source code
[packages/extension-mention/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-mention/)
## Usage
<demo name="Nodes/Mention" />