[TOC]
## blur
<!--
Removes focus from the editor.
-->
讓編輯器失去焦點。
**方法**
```javascript
blur()
```
**示例**
```javascript
quill.blur();
```
## disable
<!--
Shorthand for [`enable(false)`](#enable).
-->
[`enable(false)`](#enable)的快捷方法。
## enable
<!--
Set ability for user to edit, via input devices like the mouse or keyboard. Does not affect capabilities of API calls, when the `source` is `"api"` or `"silent".
-->
讓通過鼠標或鍵盤等輸入設備設置讓用戶能夠編輯內容。當`source`為`"api"`或`"silent"時,不影響API的調用。
社
**方法**
```javascript
enable(enabled: boolean = true)
```
**示例**
```javascript
quill.enable();
quill.enable(false); // Disables user input
```
## focus
<!--
Focuses the editor and restores its last range.
-->
焦點編輯器并恢復最后一次的選擇。
**方法**
```javascript
focus()
```
**示例**
```javascript
quill.focus();
```
## hasFocus
<!--
Checks if editor has focus. Note focus on toolbar, tooltips, does not count as the editor.
-->
檢查焦點是否在編輯器上,注意,若焦點在工具欄或提示框上,不算作在編輯器上。
**方法**
```javascript
hasFocus(): Boolean
```
**示例**
```javascript
quill.hasFocus();
```
## update
<!--
Synchronously check editor for user updates and fires events, if changes have occurred. Useful for collaborative use cases during conflict resolution requiring the latest up to date state. [Source](/docs/api/#events) may be `"user"`, `"api"`, or `"silent"`.
-->
如果編輯器內容發生改變,同步檢查用戶更新和觸發事件。在沖突解決方案中要求最新狀態的協同案例中有作用。[Source](事件events.md) 可選`"user"`, `"api"`, 或`"silent"`
**方法**
```javascript
update(source: String = 'user')
```
**示例**
```javascript
quill.update();
```
- 前言
- 快速開始(quick_start)
- 下載(download)
- 配置(configuration)
- 格式(formats)
- API
- 內容(contents)
- 格式化(formatting)
- 選區(selection)
- 編輯器(editor)
- 事件(events)
- 模型(model)
- 擴展(extension)
- 增量(Delta)
- 模塊(modules)
- 工具欄(toolbar)
- 鍵盤(keyboard)
- 歷史記錄(history)
- 粘貼板(clipboard)
- 語法高亮(syntax)
- 主題(themes)
- 更多教程
- 為什么選擇Quill?
- 如何定制Quill?
- 設計Delta格式(未翻譯)
- 構建一個自定義模塊
- 將Quill加入你的編譯管線(未翻譯)
- Cloning Medium with Parchment
- 和其它富文本編輯器的對比(未翻譯)
- Designing the Delta Format
- 擴展模塊
- vue-quill-editor
- quill-image-extend-module
- quill-image-resize-module
- quill-image-drop-module
- quill-better-table
- quilljs-table
- 更多模塊