Back to reference

EditorFactory deprecated

Factory that returns Editors, which represent HTML editors enhanced with Grammarly.

Deprecated: since v1.6.7 - use EditorSDK instead

declare type EditorFactory = EditorSDK;

Examples

const Grammarly = await init("YOUR_CLIENT_ID");
const plugin = Grammarly.addPlugin(document.querySelector("textarea"));
Last Updated: 4/12/2023, 3:24:55 PM