Skip to content
Document Authoring DA  API Docs v1.22.2
npmGitHub

ActionCall>= v1.23.0

ActionCall:

{
args: readonly unknown[];
}

A call to an action, for editor.executeAction(). Build calls to built-in actions with actionCalls, which types their arguments. For a custom action, or an ID only known at runtime, write the object directly.

import { actionCalls } from '@nutrient-sdk/document-authoring';
await editor.executeAction(actionCalls['formatting.font-size'](14));
await editor.executeAction({ id: 'custom.save', args: ['/api/save'] });

readonly id: string

The ID of the action to run.


readonly args: readonly unknown[]

The arguments for the action’s handler.