docs: define keepOnSplit and default optional (#4404)

This commit is contained in:
moander 2024-06-07 16:46:40 +02:00 committed by GitHub
parent 52002feeed
commit ea6dd09728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,11 +133,11 @@ export type CommandSpec = (...args: any[]) => Command
export type KeyboardShortcutCommand = (props: { editor: Editor }) => boolean
export type Attribute = {
default: any
default?: any
rendered?: boolean
renderHTML?: ((attributes: Record<string, any>) => Record<string, any> | null) | null
parseHTML?: ((element: HTMLElement) => any | null) | null
keepOnSplit: boolean
keepOnSplit?: boolean
isRequired?: boolean
}