docs: make all extension keyboard shortcuts a table
This commit is contained in:
@@ -20,25 +20,25 @@ yarn add @tiptap/extension-history
|
||||
| newGroupDelay | `Number` | `500` | The delay between changes after which a new group should be started (in milliseconds). When changes aren’t adjacent, a new group is always started. |
|
||||
|
||||
## Commands
|
||||
| Command | Parameters | Description |
|
||||
| ------- | ---------- | --------------------- |
|
||||
| undo | — | Undo the last change. |
|
||||
| redo | — | Redo the last change. |
|
||||
|
||||
### undo()
|
||||
Undo the last change.
|
||||
|
||||
```js
|
||||
editor.commands.undo()
|
||||
```
|
||||
### redo()
|
||||
Redo the last change.
|
||||
|
||||
```js
|
||||
editor.commands.redo()
|
||||
```
|
||||
|
||||
## Keyboard shortcuts
|
||||
### Undo
|
||||
* Windows/Linux: `Control` `Z`
|
||||
* macOS: `Cmd` `Z`
|
||||
#### Russian keyboard layouts
|
||||
* Windows/Linux: `Control` `я`
|
||||
* macOS: `Cmd` `я`
|
||||
|
||||
### Redo
|
||||
* Windows/Linux: `Shift` `Control` `Z` or `Control` `Y`
|
||||
* macOS: `Shift` `Cmd` `Z` or `Cmd` `Y`
|
||||
#### Russian keyboard layouts
|
||||
* Windows/Linux: `Shift` `Control` `я`
|
||||
* macOS: `Shift` `Cmd` `я`
|
||||
| Command | Windows/Linux | macOS |
|
||||
| ------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
||||
| undo() | `Control` `Z`<br>`Control` `я` | `Cmd` `Z`<br>`Cmd` `я` |
|
||||
| redo() | `Shift` `Control` `Z`<br>`Control` `Y`<br>`Shift` `Control` `я` | `Shift` `Cmd` `Z`<br>`Cmd` `Y`<br>`Shift` `Cmd` `я` |
|
||||
|
||||
## Source code
|
||||
[packages/extension-history/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-history/)
|
||||
|
||||
Reference in New Issue
Block a user