Change events

The editor

Change events

React to every edit.

Listen for design:updated via addEventListener (or the onDesignChange prop on the native API) to autosave or sync as the user edits. See events.

Coming from react-email-editor? Any on... prop is attached as an event listener, soonDesignUpdated and onDesignLoad work as they do there, and onReady andonLoad receive the editor. Pass your options in an options object if you like; a top-level prop wins over the same key inside it.