a ton of improvements

This commit is contained in:
Hans Pagel
2020-09-23 12:03:03 +02:00
parent 42b982b71c
commit 949f4ccb3d
24 changed files with 85 additions and 61 deletions

View File

@@ -10,8 +10,10 @@ npm install @tiptap/extension-history
yarn add @tiptap/extension-history
```
## Options
*None*
## Settings
| Option | Type | Default | Description |
| -------------------- | ------ | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| historyPluginOptions | Object | {} | Supports the following configuration options:<br /><br />**depth:** The amount of history events that are collected before the oldest events are discarded. Defaults to 100.<br /><br />**newGroupDelay:** The delay between changes after which a new group should be started. Defaults to 500 (milliseconds). Note that when changes aren't adjacent, a new group is always started. |
## Commands
| Command | Options | Description |
@@ -20,6 +22,7 @@ yarn add @tiptap/extension-history
| redo | — | Redo the last change. |
## Keyboard shortcuts
### Undo
* Windows & Linux: `Control` + `Z`
* macOS: `Command` + `Z`