@doconda/editor, and pass the .pptx in src. The slides show inside your site, where
users can edit and present them full screen; with readOnly they only view them. Everything runs in the browser: the
file isn’t uploaded anywhere to be edited.
Add a PowerPoint viewer or editor
- Get the plugin in the dashboard, under Editor, with a 7-day free trial. See licence and domains.
- Install it with the command the dashboard gives you (it needs React 19 or later):
- Put the editor in a container with a height and pass it the
.pptxlink:
- For a viewer only, add
readOnly:
src must be a file the browser can download: from your site, or from a server that allows it with CORS. If the link
has no extension, pass format="slide".
What it does with a PowerPoint file
- Slides: new, duplicate, hide, layout, background and sections; master, layouts and themes.
- Content: text with its styles, shapes, connectors, images, tables and charts.
- Motion: transitions, animations and speaker notes.
- View: zoom, present full screen and print.
readOnly mode the toolbars disappear, but users can still move between slides, copy text and present. Whatever the
editor can’t edit, charts included, is saved as it was.
Remove what you don’t need
toolbar takes a function that filters the default groups (the ones for a selection start with @), and false
removes the bottom bar or the right-click menu:
Save the edited file
Get the file through aref:
FAQ
Does it open old .ppt files?
Does it open old .ppt files?
Yes. It opens
.pptx, .ppsx, .ppt, .pps and .pot, plus .odp, which it converts first. Saving gives a
.pptx.Can I switch to edit mode without reloading?
Can I switch to edit mode without reloading?
Yes.
readOnly can change at any time without reopening the file. See
DOCX viewer for React.Can the editor be in Spanish or English?
Can the editor be in Spanish or English?
Yes.
locale takes "es" or "en"; without it, the browser’s language is used. labels changes any text.