property TextEditorProps.onCancel

Called on Escape when no popup of the editor is left to close. Inline editors (an edit, a reply) pass it to mean "never mind".

Type

() => void

Usage

import { type TextEditorProps } from "src/components/editor/TextEditor.tsx";