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: 10/12/2022, 8:08:40 PM