diff --git a/src/extensions/rich-text/rich-text-bullet-list.ts b/src/extensions/rich-text/rich-text-bullet-list.ts index 67ec3e85..d6833139 100644 --- a/src/extensions/rich-text/rich-text-bullet-list.ts +++ b/src/extensions/rich-text/rich-text-bullet-list.ts @@ -33,6 +33,7 @@ const RichTextBulletList = BulletList.extend({ const { editor, name, options } = this return { + ...this.parent?.(), smartToggleBulletList() { return ({ commands, state, tr, chain }) => { const { schema } = state diff --git a/src/extensions/rich-text/rich-text-ordered-list.ts b/src/extensions/rich-text/rich-text-ordered-list.ts index 368f853a..47e12ccc 100644 --- a/src/extensions/rich-text/rich-text-ordered-list.ts +++ b/src/extensions/rich-text/rich-text-ordered-list.ts @@ -33,6 +33,7 @@ const RichTextOrderedList = OrderedList.extend({ const { editor, name, options } = this return { + ...this.parent?.(), smartToggleOrderedList() { return ({ commands, state, tr, chain }) => { const { schema } = state