Skip to content

Commit

Permalink
Improve documentation for updateContents
Browse files Browse the repository at this point in the history
Closes #3230
  • Loading branch information
luin committed Feb 2, 2024
1 parent 85e7719 commit f8bfde4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/website/content/docs/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ quill.updateContents(new Delta()
// ]
```

<Hint>
This method updates the contents from the beginning, not from the current selection.
Use `Delta#retain(length: number)` to skip the contents you wish to leave unchanged.
</Hint>

## Formatting

### format
Expand Down

0 comments on commit f8bfde4

Please sign in to comment.