init()
init()
Initialize Grammarly. The ClientId must be passed another way.
declare function init(): Promise<void>;
init(clientId, config, win)
Initialize Grammarly and start using EditorSDK to connect editors.
Examples
const Grammarly = await init("YOUR_CLIENT_ID");
Parameters
Name | Type | Description |
---|---|---|
clientId | string | The ClientId for authentication |
config | Config | The Config for all the editors |
win | Window | The browser window where Grammarly will be initialized. It can be used to initialize Grammarly in a child window. It defaults to the current window. |