Back to reference

GrammarlyEditorPluginElementEventMap

Custom events emitted by GrammarlyEditorPluginElement

Try it outopen in new window

interface GrammarlyEditorPluginElementEventMap extends HTMLElementEventMap {
  "document-stats": CustomEvent<DocumentStats>;
  "plugin-error": CustomEvent<Error>;
  "plugin-turned-off": CustomEvent;
  "session-stats": CustomEvent<SessionStats>;
  "suggestion-card-close": CustomEvent;
  "suggestion-card-open": CustomEvent;
}

Properties

"document-stats"CustomEvent<DocumentStats>
Triggered when new text information is available.
Since: v1.9.0

"plugin-error"CustomEvent<Error>
Triggered on fatal error with the plugin
Since: v1.9.0

"plugin-turned-off"CustomEvent
Triggered when the user turns off Grammarly.
Since: v1.9.0

"session-stats"CustomEvent<SessionStats>
Triggered when new session information is available.
Since: v1.9.0

"suggestion-card-close"CustomEvent
Triggered when a suggestion card is closed
Since: v1.8.0

"suggestion-card-open"CustomEvent
Triggered when a suggestion card is opened
Since: v1.8.0

Last Updated: 10/12/2022, 8:08:40 PM