# OnlyOffice

**OnlyOffice** 整合功能允許使用者在 Chamilo 內直接於瀏覽器中編輯文件（Word、Excel、PowerPoint），無需下載。

## OnlyOffice 提供的功能

* **文件編輯** — 在瀏覽器中編輯 .docx、.xlsx、.pptx 檔案
* **格式相容性** — 與 Microsoft Office 格式完全相容
* **無需桌面軟體** — 一切皆在瀏覽器中運行

> 即時協作編輯取決於 OnlyOffice Document Server 本身；Chamilo 的外掛程式透過伺服器開啟並儲存文件，但不會新增或限制該功能。

## 設定

1. 在您的伺服器上安裝 **OnlyOffice Document Server**（或使用 OnlyOffice 雲端服務）
2. 在 Chamilo 平台設定中，設定：
   * **OnlyOffice Document Server URL** — 您的 OnlyOffice 伺服器位址
   * **Secret key** — 用於 Chamilo 與 OnlyOffice 之間的安全通訊
3. 啟用整合功能

## 運作方式

設定完成後，使用者在「文件」工具中檢視支援的文件類型時，將看到 **Edit with OnlyOffice** 選項。點擊後，文件將在 Chamilo 介面內的 OnlyOffice 編輯器中開啟。

變更會自動儲存回 Chamilo 的文件儲存區。

## 提示

* **建議使用獨立伺服器** — 如同 BigBlueButton，OnlyOffice Document Server 應運行在專用伺服器上以獲得最佳效能
* **需要 HTTPS** — Chamilo 和 OnlyOffice 均需透過 HTTPS 提供服務，整合功能才能運作
* **檢查格式** — OnlyOffice 與 Office 格式（.docx、.xlsx、.pptx）相容最佳。其他格式的編輯支援可能有限。


---

# 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://docs.chamilo.org/2.x-zh-tw/guan-li-zhi-nan/admin-guide/integrations/onlyoffice.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.
