add a new heading to the upgrade guide
This commit is contained in:
@@ -90,7 +90,11 @@ Currently, blockquotes must not be nested anymore. That said, we’re working on
|
|||||||
| ~~`getHTML`~~ | `html` |
|
| ~~`getHTML`~~ | `html` |
|
||||||
| ~~`getJSON`~~ | `json` |
|
| ~~`getJSON`~~ | `json` |
|
||||||
|
|
||||||
### 6. .focus() isn’t called on every command anymore
|
### 6. Commands can be chained now
|
||||||
|
|
||||||
|
…
|
||||||
|
|
||||||
|
### 7. .focus() isn’t called on every command anymore
|
||||||
We tried to hide the `.focus()` command from you with tiptap 1 and executed that on every other command. That led to issues in specific use cases, where you want to run a command, but don’t want to focus the editor. With tiptap 2.x you have to explicitly call the `focus()` and you probably want to do that in a lot of places. Here is an example:
|
We tried to hide the `.focus()` command from you with tiptap 1 and executed that on every other command. That led to issues in specific use cases, where you want to run a command, but don’t want to focus the editor. With tiptap 2.x you have to explicitly call the `focus()` and you probably want to do that in a lot of places. Here is an example:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
|||||||
Reference in New Issue
Block a user