mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00
docs: define keepOnSplit and default optional (#4404)
This commit is contained in:
parent
52002feeed
commit
ea6dd09728
@ -133,11 +133,11 @@ export type CommandSpec = (...args: any[]) => Command
|
|||||||
export type KeyboardShortcutCommand = (props: { editor: Editor }) => boolean
|
export type KeyboardShortcutCommand = (props: { editor: Editor }) => boolean
|
||||||
|
|
||||||
export type Attribute = {
|
export type Attribute = {
|
||||||
default: any
|
default?: any
|
||||||
rendered?: boolean
|
rendered?: boolean
|
||||||
renderHTML?: ((attributes: Record<string, any>) => Record<string, any> | null) | null
|
renderHTML?: ((attributes: Record<string, any>) => Record<string, any> | null) | null
|
||||||
parseHTML?: ((element: HTMLElement) => any | null) | null
|
parseHTML?: ((element: HTMLElement) => any | null) | null
|
||||||
keepOnSplit: boolean
|
keepOnSplit?: boolean
|
||||||
isRequired?: boolean
|
isRequired?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user