@reductoai/pptx-editor gives you a .pptx editor in one call: the ribbon, the slide rail with sections, the slide stage with shape handles and text editing, notes, comments, Find and Replace, chart Edit Data and the slide show.
Vanilla JS
React
usePptxEditor(model, select) re-renders only when the picked value changes (shallow compare). Without a selector it re-renders on every edit, selection and slide change. Outside React, watch(read, onChange) from @reductoai/pptx-editor does the same.
deck opens again when it changes, so keep the bytes stable between renders. onError hears when a deck does not open, and readOnly follows the prop. React is an optional peer dependency.
The editor paints on canvases, so it must run on the client. In Next.js, load it with dynamic(() => import("./App"), { ssr: false }).
Options
Faces load on demand: a deck pulls only the families it uses, and a command that asks for a new face (a font change, pasted text) fetches it and lays the deck out again.
The handle
mountPptxEditor returns:
EMF and WMF pictures
They show as placeholder boxes until the page installs a backend. CallinstallBrowserMetafileBackend and installBrowserSvgRasterizer from @reductoai/pptx/browser once, before the first deck opens. See JS API in the browser. Pass the same fonts provider to the editor and the backend, so metafile text finds its faces.
Styles
style.css styles the editor only: every rule applies under .reductoai (the editor’s root and its menus), and the design tokens all start with --rd-. Set a token on :root or on an ancestor of the editor to re-skin it; @reductoai/pptx-editor/tokens.css lists them. For a page that is all editor, also import @reductoai/pptx-editor/page.css: it styles html and body.