API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignMetadatagetDesignTokeninitAppElementopenDesignoverlay.registerOnCanOpenrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Intents: data
Intents: design
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInfonotification.addToastrequestOpenExternalUrl
editContent
API reference for the editContent method.
This version of the API is a preview. Preview APIs are unstable and may change without warning. You can't release public apps using this API until it's stable.
Reads and edits fill content from the user's design.
Parameters
options
object
Required
Options for configuring how a design is read. Must specify contentType: 'fill'
.
target
string
Required
This must be "current_page"
.
contentType
string
Required
This must be "fill"
.
callback
function
Required
A callback that receives a FillContentSession
for editing.
Parameters
session
FillContentSession
Required
Session for reading and updating fill content in a user's design.
contents
FillContent[]
Read-onlyRequired
type
string
Required
This must be "image"
.
ref
ImageRef
Required
deleted
boolean
Required
type
string
Required
This must be "video"
.
ref
VideoRef
Required
deleted
boolean
Required
sync
function
Required
Returns
Promise<void>
Returns
void
or Promise<void>
Returns
A promise that resolves when editing is complete.
Promise<void>