Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 737 Bytes

editorEvents.en-US.md

File metadata and controls

29 lines (22 loc) · 737 Bytes

Editor Events

SyntheticEvent

import GGEditor, { Flow } from 'gg-editor';

<GGEditor
  onBeforeCommandExecute={({ command }) => {
    console.log('command', command);
  }}
>
  <Flow />
</GGEditor>

Event List

Event Name Description
onBeforeCommandExecute A function is called before executing the command.
onAfterCommandExecute A function is called after executing the command.

Commands

Command Property Description Type
name The name of the command. string
queue It returns true or false to indicate whether the command entered the command queue. Entering the command queue to perform the undo and redo commands. boolean