editor
This class contains all the APIs used to embed the full Adobe Express editor in your own application.
Editor workflows
The following methods belong to the editor class:
create: Start with an empty canvas.createWithAsset: Start with an asset.edit: Continue editing an existing Express project.
create
The create method starts the full editor workflow with an empty canvas.
editor.create: (docConfig?: CreateDocConfig, appConfig?: BaseEditorAppConfig, exportConfig?: ExportOptions, containerConfig?: ContainerConfig): void
All the properties in this object are optional.
CreateDocConfig
CreateDocConfig allows you to pass a custom canvas size.
BaseEditorAppConfig
BaseEditorAppConfig allows you to configure the editor to be launched for the user.
true. Set to false if multi-page export is not supported.data-variant=info
data-slots=text1
allowedFileTypes to specify the list of filetypes that the user can download. This can be used to limit the download options as per file types for end users. This limitation is applied to both native download and custom download scenarios.View the full list of canvas sizes and template types.
createWithAsset
The createWithAsset method starts the full editor workflow with an asset.
editor.createWithAsset: (docConfig: CreateWithAssetDocConfig, appConfig?: BaseEditorAppConfig, exportConfig?: ExportOptions, containerConfig?: ContainerConfig): void
CreateWithAssetDocConfig
CreateWithAssetDocConfig allows you to pass an image and/or a custom canvas size.
edit
The edit method lets you continue editing an existing Express project
editor.edit: (docConfig: EditDocConfig, appConfig?: BaseEditorAppConfig, exportConfig?: ExportOptions, containerConfig?: ContainerConfig): void
EditDocConfig
onPublish callbackWhen a user completes their workflow in the editor, the associated documentId is sent back in publishParams from the onPublish callback.