Web SDKv1.0.0

ToolsApi.editText

Control surface for the Edit Text tool: list, open, retype and commit text blocks from code. Every method of it needs the tool to be active (viewer.activateTool('editText'), which needs the license's edit-text feature); see EditTextToolApi.
getterToolssince 1.0.0

Signature

get editText(): EditTextToolApi

Returns

EditTextToolApi

Example

TypeScript
await viewer.activateTool('editText');
const blocks = await viewer.tools.editText.listBlocks(0);

More in ToolsApi