Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2 from mrflix/toggle-largerParagraph
Browse files Browse the repository at this point in the history
  • Loading branch information
tobimori authored Feb 10, 2022
2 parents 79bd9d0 + 9e93d70 commit 26b1df2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Nodes/LargerParagraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default class largerParagraph extends Node {
}
}

commands({ utils, type }) {
commands({ type, schema, utils }) {
return {
largerParagraph: () => utils.setBlockType(type)
largerParagraph: attrs => utils.toggleBlockType(type, schema.nodes.paragraph, attrs)
}
}

Expand Down

0 comments on commit 26b1df2

Please sign in to comment.