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