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:
Mime Čuvalo 2024-07-16 15:39:40 +01:00 committed by GitHub
parent 6ba3fb0722
commit 9d15a05ac0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: