Skip to content

Commit 0341b2c

Browse files
committed
docs: 📝 update docs api (props, methods)
1 parent 63f0b3f commit 0341b2c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

docs/content/api/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
VueQuill supports three content type `delta`, `html`, and `text`, and make sure to set contentType if you want to use `html` or plain `text` as your content.
2525

26+
::: tip
27+
Use `delta` (default value) content type to prevent issues and is the best practice.
28+
:::
29+
2630
## enable
2731
- **Type:** `Boolean`
2832
- **Default:** `true`

docs/content/api/methods.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,18 @@ We highly recommend to call method when the quill editor ready, use @ready event
4141

4242
Returns the full HTML contents of the editor.
4343

44-
## setHTML(html, source)
44+
## setHTML(html)
4545

46-
- **Parameter:** `html: string, source: 'api' | 'user' | 'silent'`
46+
- **Parameter:** `html: string`
4747

4848
To set the HTML contents of the editor.
4949

50+
## pasteHTML(html, source)
51+
52+
- **Parameter:** `html: string, source: 'api' | 'user' | 'silent'`
53+
54+
To import raw HTML from a non-Quill environment.
55+
5056
## getText(index, length)
5157

5258
- **Parameter:** `index?: number, length?: number`

0 commit comments

Comments
 (0)