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: 2/7/2023, 10:38:49 PM