id

autoCorrect

Whether or not the editor should attempt to autocorrect spellcheck errors.

autoFocus

Boolean

Whether or not the editor should attempt to give the contenteditable element focus when it's loaded onto the page.

className

String

An optional class name to apply to the contenteditable element.

onChange

Function onChange(change: Change)

A change handler that will be called with the change that applied the change. You should usually pass the newly changed change.value back into the editor through its value property. This hook allows you to add persistence logic to your editor.

placeholder

String || Element

A placeholder string (or React element) that will be rendered if the document only contains a single empty block.