# 实时编辑

启用实时编辑后，你组织中的成员可以在不创建 [变更请求](/docs/documentation/zh/collaboration/change-requests.md)的情况下编辑空间。编辑内容时，你可以在右上角看到当前正在查看该空间的任何人的头像。

GitBook 支持实时协作，这意味着你可以与多个成员同时在同一文档上工作。

{% hint style="info" %}
**实时编辑已锁定** 默认情况下，任何新建空间中的实时编辑都是锁定的。若要编辑内容，你需要 [创建变更请求](/docs/documentation/zh/collaboration/change-requests.md)，或者切换开启实时编辑。
{% endhint %}

### 切换实时编辑模式

你可以通过选择以下选项，在空间中切换实时编辑模式 **锁定实时编辑** 或 **解锁实时编辑** 来自 [空间标题栏的](/docs/documentation/zh/zi-yuan/gitbook-ui.md#space-header) **操作菜单** <picture><source srcset="/files/HXFvPsjDqbaBEhpH0WKJ" media="(prefers-color-scheme: dark)"><img src="/files/950d2c0e21d4aa4c603de07a2bc5d827c0d5cbde" alt="The Actions menu icon in GitBook"></picture>.

当空间处于 **实时编辑** 模式时，空间标题栏将显示 **编辑器** 选项卡。当它处于 **锁定的实时编辑** 模式时，空间标题栏将显示一个 **只读** 选项卡。当空间标题栏中出现“只读”选项卡时，你需要打开变更请求来编辑页面内容，或者解锁实时编辑。

### 何时可用 *不* 实时编辑？

如果出现以下情况，你无法解锁实时编辑：

1. 某个空间以 **在集合中**, **公开**，或 **未列出** 可见性选项发布。
2. 某个空间具有 [GitHub 或 GitLab 同步](/docs/documentation/zh/getting-started/git-sync.md) ，你仍可能会看到 Google、GitHub 或电子邮件按钮。这是预期行为。

{% hint style="info" %}
仅 [管理员和创建者](/docs/documentation/zh/collaboration/member-management/roles.md) 可以锁定或解锁实时编辑。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.com/docs/documentation/zh/collaboration/live-edits.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
