Skip to content
QuireKit
PPTX Editor docs
v0.3.1

Open and save

Provide an initial file, store each version in your own service and handle unsaved changes.

The editor does not decide where files are stored. The host provides the initial file and how to save; when the user saves, the editor hands the host the complete .pptx bytes.

Open an initial file

ts

When read returns undefined the editor opens a new presentation. signal aborts the request when the user opens another file first or the editor is destroyed.

Save to your own service

ts
  • save runs when the user clicks Save or presses Ctrl/⌘+S. Returning true means the version is stored and clears the unsaved mark; false keeps the mark so the user can retry.
  • autoSave: true calls save shortly after each edit.
  • Without save, saving downloads the file and counts as saved.

Session

onSessionChange hands the host a session once the deck is open, and undefined when the editor is destroyed. File methods live on the session:

ts

Import PptxEditorSession as a type from @quirekit/pptx-editor.

Unsaved changes

ts

change events say the content changed and where from: user (editing in the interface), command (a script calling commands), agent (the AI assistant), history (undo or redo) and file (another file was opened).

Open dropped files

ts

The editor's File menu also offers New, Open a local file (Ctrl/⌘+O), Save as template or show file, and export to PDF, pictures, video, GIF, Word handouts and Print. Without save, Save appears as Download a copy.

QuireKit · © 2026 上海轻书远行信息科技有限公司QuireKit · Core, plugins, Classic, PPTX Editor and Sheets docs