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 editor = Grammarly.withElement(document.querySelector("textarea"));
Last Updated: 5/12/2022, 10:30:27 PM