Skip to content

fix(save): allow export from read-only embed iframes - #308

Merged
chaxus merged 2 commits into
mainfrom
fix/307_readonly_embed_export
Nov 6, 2026
Merged

chaxus merged 2 commits into
mainfrom
fix/307_readonly_embed_export

Conversation

@chaxus

@chaxus chaxus commented Nov 6, 2026

Copy link
Copy Markdown
Member

Summary

  • Allow document:save / requestSaveDocument on read-only documents so embed hosts can export locked previews (#307).
  • In embed mode, File-tab downloads that are not claimed by a pending document:save trigger a local download instead of silently dropping the bytes (without clearing the host dirty flag).
  • Update embed API docs, 7-locale landing copy, CHANGELOG, and flip unit/E2E expectations from “save refused” to “export still works”.

Test plan

  • pnpm exec vitest run test/unit/onlyoffice-editor.test.ts test/unit/embed-api.test.ts
  • E2E_PORT=4175 pnpm exec playwright test test/e2e/embed-regression.spec.ts -g "readonly open reports readonly|runtime readonly toggle"
  • E2E_PORT=4175 pnpm exec playwright test test/e2e/format-parity.spec.ts test/e2e/pdf-roundtrip.spec.ts -g "readonly|still allows export"
  • Confirm CI required checks go green
  • Manual: open /editor?src=<url>&readonly=1&embed=1, use File → Download, confirm a file downloads; from parent call document:save and receive document:saved

Closes #307

Made with Cursor

Read-only blocked document:save and embed mode dropped File-tab
downloads, so locked embeds looked broken (#307). Export stays
allowed while editing remains locked.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Deploying document with  Cloudflare Pages  Cloudflare Pages

Latest commit: e9cff0f
Status: ✅  Deploy successful!
Preview URL: https://95f3cf84.document-7hm.pages.dev
Branch Preview URL: https://fix-307-readonly-embed-expor.document-7hm.pages.dev

View logs

Unblock Lint and Validate on the readonly-embed export PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
@chaxus
chaxus merged commit 51cf020 into main Nov 6, 2026
19 checks passed
@chaxus
chaxus deleted the fix/307_readonly_embed_export branch November 6, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow downloading files in read-only iframe embeds

1 participant