Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog

## 9.4.0

- Added ONLYOFFICE Developer Edition Connector support and demos.
- Updated bundled editor assets to `9.4.0-develop`.

## 9.3.0

- Added the v9 editor model and refactored component internals.
- Added common font registration and custom font fixes.
- Added CDN/static resource registration, including cross-origin review APIs.
- Added Office XML size diagnostics, plain-text Office fallbacks, and PPTX import/export fixes.
- Improved comments, revisions, read-only mode, user switching, themes, CSV, and DOCM support.

## 7.4

- Added the base editor model and public manager APIs.
- Added basic document CRUD flows: open, create, update, save/export, and destroy.
- Added read-only mode, loading events, language switching, CSV import, JPG export, and multi-instance demos.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The practical integration path is:
2. Copy the static assets from [`public/packages/onlyoffice/`](public/packages/onlyoffice/) into your app's `public/packages/onlyoffice/` directory.
3. Build your UI by following [`src/features/demo/office-preview-page.tsx`](src/features/demo/office-preview-page.tsx): create an editor container, keep an `OnlyOfficeManager` instance, call `openDocument`, `downloadExport`, `toggleReadOnly`, and destroy the manager on unmount.

Static resource resolution is centralized in [`src/components/onlyoffice-web-comp/const/index.ts`](src/components/onlyoffice-web-comp/const/index.ts). By default it reads `/packages/onlyoffice/9.3.0`; to switch to a CDN, update the `cdnOrigin` used by `buildStaticResource`.
Static resource resolution is centralized in [`src/components/onlyoffice-web-comp/const/index.ts`](src/components/onlyoffice-web-comp/const/index.ts). Both local and CDN modes use the Developer Edition Docker-exported 9.4 SDK at `/packages/onlyoffice/9.4.0-develop` by default; `onlyofficeVersion` can override the CDN directory when needed.

## Core Advantages

Expand Down Expand Up @@ -142,7 +142,7 @@ npx wrangler pages deploy public/packages \
After deployment, the asset URL should look like:

```text
https://<project>.pages.dev/onlyoffice/9.3.0/web-apps/apps/api/documents/api.js
https://<project>.pages.dev/onlyoffice/9.4.0-develop/web-apps/apps/api/documents/api.js
```

Use that Pages origin as the runtime resource root:
Expand Down
4 changes: 2 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
2. 复制 [`public/packages/onlyoffice/`](public/packages/onlyoffice/) 静态资源到你的项目 `public/packages/onlyoffice/` 目录。
3. 参考 [`src/features/demo/office-preview-page.tsx`](src/features/demo/office-preview-page.tsx) 构造自己的界面:准备编辑器容器,维护一个 `OnlyOfficeManager` 实例,按需调用 `openDocument`、`downloadExport`、`toggleReadOnly`,并在页面卸载时销毁 manager。

静态资源读取统一在 [`src/components/onlyoffice-web-comp/const/index.ts`](src/components/onlyoffice-web-comp/const/index.ts) 配置。默认读取 `/packages/onlyoffice/9.3.0`;如果你要切换到 CDN,修改 `buildStaticResource` 中使用的 `cdnOrigin` 即可
静态资源读取统一在 [`src/components/onlyoffice-web-comp/const/index.ts`](src/components/onlyoffice-web-comp/const/index.ts) 配置。本地与 CDN 模式默认均读取 Developer Edition Docker 导出的 9.4 SDK:`/packages/onlyoffice/9.4.0-develop`;如 CDN 目录不同,可通过 `onlyofficeVersion` 覆盖

## 核心优势

Expand Down Expand Up @@ -142,7 +142,7 @@ npx wrangler pages deploy public/packages \
部署后资源地址应该类似:

```text
https://<project>.pages.dev/onlyoffice/9.3.0/web-apps/apps/api/documents/api.js
https://<project>.pages.dev/onlyoffice/9.4.0-develop/web-apps/apps/api/documents/api.js
```

在运行时把 Pages origin 注册为静态资源根地址:
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default defineConfig({
},
{
command: `node scripts/static-server.mjs public/packages --port ${cdnPort} --host ${host}`,
url: `http://${host}:${cdnPort}/onlyoffice/9.3.0/web-apps/apps/api/documents/api.js`,
url: `http://${host}:${cdnPort}/onlyoffice/9.4.0-develop/web-apps/apps/api/documents/api.js`,
reuseExistingServer: !isCI,
timeout: 120_000,
},
Expand Down
Loading