> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/collaborate/live-edits.md).

# 实时编辑

与其他协作者实时编辑页面

启用实时编辑后，组织中的成员可以编辑一个版块，而无需创建 [变更请求](https://gitbook.com/docs/documentation/zh/collaborate/change-requests.md)。编辑内容时，你可以在右上角看到当前正在查看该版块的所有人的头像。

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

{% hint style="info" %}
**实时编辑默认处于锁定状态** 适用于所有新建版块。若要编辑内容，你需要 [创建变更请求](https://gitbook.com/docs/documentation/zh/collaborate/change-requests.md)，或开启实时编辑。
{% endhint %}

### 切换实时编辑模式

你可以点击版块中的 **锁定实时编辑** 或 **解锁实时编辑** ， [版块标题](https://gitbook.com/docs/documentation/zh/can-kao/gitbook-ui.md#space-header) **中的“操作”菜单，切换实时编辑模式。** <picture><source srcset="broken://files/HXFvPsjDqbaBEhpH0WKJ" media="(prefers-color-scheme: dark)"><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2Fgit-blob-f73bf8251d7a6786ca6595b4593501e11512d107%2F25_02_04_actions_horizontal_1.svg?alt=media" alt="The Actions menu icon in GitBook"></picture>.

版块处于 **实时编辑** 模式时，版块标题中会显示 **“编辑器”** 标签页。处于 **实时编辑已锁定** 模式时，版块标题中会显示 **“只读”** 标签页。当版块标题中显示“只读”标签页时，你需要创建变更请求来编辑页面内容，或解锁实时编辑。

### 实时编辑在什么情况下 *不可* 用？

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

1. 版块以 **公开** 或 **未列出** 可见性选项发布。
2. 版块启用了 [GitHub 或 GitLab 同步](https://gitbook.com/docs/documentation/zh/docs-as-code/git-sync.md) 。

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
