Back to reference

Editor

An instance of Editor represents an HTML editor from your app enhanced with Grammarly.

interface Editor {
  disconnect: () => void;
}

Examples:

// returns instance of Editor
const editor = Grammarly.withElement(document.querySelector("textarea"));

Properties

disconnect() => void
Close Grammarly connection and clean up any state.

Last Updated: 9/17/2021, 11:38:18 PM