mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-11 03:33:12 +08:00
fix(core): make exitable resolve it's value through inheritance (#5244)
This commit is contained in:
parent
b2aefc215d
commit
2ef43e9251
@ -181,7 +181,7 @@ export class ExtensionManager {
|
|||||||
let defaultBindings: Record<string, () => boolean> = {}
|
let defaultBindings: Record<string, () => boolean> = {}
|
||||||
|
|
||||||
// bind exit handling
|
// bind exit handling
|
||||||
if (extension.type === 'mark' && extension.config.exitable) {
|
if (extension.type === 'mark' && getExtensionField<AnyConfig['exitable']>(extension, 'exitable', context)) {
|
||||||
defaultBindings.ArrowRight = () => Mark.handleExit({ editor, mark: extension as Mark })
|
defaultBindings.ArrowRight = () => Mark.handleExit({ editor, mark: extension as Mark })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user