docs: fix up typo (#4194)
Describe what your pull request does. If you can, add GIFs or images showing the before and after of your change. ### Change type - [ ] `bugfix` - [ ] `improvement` - [ ] `feature` - [ ] `api` - [x] `other`
This commit is contained in:
parent
6ba3fb0722
commit
9d15a05ac0
1 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ editor.bailToMark('first') // will return to A
|
|||
|
||||
## Running code in context
|
||||
|
||||
You can use the [Editor#run] method to run a function inside of a transaction. All changes made during the transaction will be settled at once. This improves performance and avoids unnecessary renders in the user interface.
|
||||
You can use the [Editor#run](?) method to run a function inside of a transaction. All changes made during the transaction will be settled at once. This improves performance and avoids unnecessary renders in the user interface.
|
||||
|
||||
```ts
|
||||
editor.run(() => {
|
||||
|
@ -156,7 +156,7 @@ editor.run(() => {
|
|||
})
|
||||
```
|
||||
|
||||
You can also use [Editor#run] to execute code with contextual options.
|
||||
You can also use [Editor#run](?) to execute code with contextual options.
|
||||
|
||||
For example, you can use the options to perform actions without effecting the undo / redo history:
|
||||
|
||||
|
|
Loading…
Reference in a new issue