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` (#613)
  • Loading branch information
rfgamaral authored Jan 17, 2024
1 parent 1d1440c commit 4c4a0dc
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 4c4a0dc

Please sign in to comment.