Skip to content

Commit

Permalink
fix(commands): Restore built-in toggleBulletList and `toggleOrdered…
Browse files Browse the repository at this point in the history
…List`
  • Loading branch information
rfgamaral committed Jan 17, 2024
1 parent 1d1440c commit 18ae8ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/extensions/rich-text/rich-text-bullet-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/extensions/rich-text/rich-text-ordered-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18ae8ae

Please sign in to comment.