Skip to main content
The batteries-included editor. Guide: Editor.

mountPptxEditor()

Import from @reductoai/pptx-editor.

PptxEditorOptions

Import from @reductoai/pptx-editor.

PptxEditorHandle

Import from @reductoai/pptx-editor.

PptxEditorModel

Import from @reductoai/pptx-editor.

PptxEditorModel properties

PptxEditorModel.addGuide()

A guide through the slide’s centre, and the guides shown.

PptxEditorModel.changePicture()

Change Picture: the file picker, then the selected picture shows that file.

PptxEditorModel.external()

Runs an edit made around the editor (a script, an agent) on editor.presentation in the command queue, as one undo step; the settled view lands in view.

PptxEditorModel.insertMedia()

A video or sound file on the current slide, centred on at (hmm) or on the slide.

PptxEditorModel.insertPicture()

A picture file on the current slide, centred on at (hmm) or on the slide.

PptxEditorModel.laidOut()

The view once every slide is laid out: for a PDF export or anything else that reads the whole deck.

PptxEditorModel.merge()

Lands another writer’s change (run writes it and names the parts it wrote) in the command queue, keeping the user’s selection.

PptxEditorModel.open()

PptxEditorModel.pickPicture()

Insert > Picture: the file picker, then the picture centred on the slide.

PptxEditorModel.pickPictureBytes()

The file picker, then the picked image’s bytes as PowerPoint keeps them; undefined when cancelled or unreadable.

PptxEditorModel.present()

Starts a slide show; one already running ends first.

PptxEditorModel.run()

PptxEditorModel.save()

PptxEditorModel.setAuthorName()

The name the user typed for their comments, kept for the next visit.

PptxEditorModel.setDisplay()

Turning Guides on in a deck with none adds PowerPoint’s two centre guides.

PptxEditorModel.setPresence()

Other writers’ places; their marks follow every view this model publishes.

PptxEditorModel.settled()

Waits for every queued command; tests and scripts call it before reading view.

PptxEditorModel.setZoom()

PptxEditorHooks

Import from @reductoai/pptx-editor.

pptxHooks()

Import from @reductoai/pptx-editor.

PaintCache

Import from @reductoai/pptx-editor.

PaintCache properties

PaintCache.prepare()

Registers the faces and decodes the pictures the given pages use; a page seen before costs nothing.

watch()

Calls onChange after any field read reads changes; returns the stop. Import from @reductoai/pptx-editor.