executeMethod

function executeMethod(name: string, params: [], callback: ()): boolean

Description

Defines the method used to execute certain editor methods using the plugin.

The callback is the result that the method returns. It is an optional parameter. In case it is missing, the {@link Plugin#onMethodReturn window.Asc.plugin.onMethodReturn} function will be used to return the result of the method execution.

Parameters

namestring

The name of the specific method that must be executed.

params[]

The arguments that the method in use has (if it has any).

callback()

The result that the method returns.

Returns

boolean

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).