Back to reference

init()

Initialize Grammarly and start using EditorFactory to connect editors.

declare function init(clientId: string): Promise<EditorFactory>;

Examples:

const Grammarly = await init("YOUR_CLIENT_ID");

Parameters

NameTypeDescription
clientIdstringThe ClientId for authentication
Last Updated: 9/11/2021, 1:20:11 AM