Skip to content

Commit

Permalink
Merge pull request #70 from Patternslib/fix-deprecated-option
Browse files Browse the repository at this point in the history
fix: Fix a deprecated tiptap method in the trailing-node extension.
  • Loading branch information
thet authored Aug 21, 2024
2 parents d1b5704 + 49d5062 commit ddb8f77
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/extensions/trailing-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ export const factory = () => {
return Extension.create({
name: "trailingNode",

defaultOptions: {
node: "fixed-paragraph",
notAfter: ["paragraph", "fixed-paragraph"],
addOptions() {
return {
node: "fixed-paragraph",
notAfter: ["paragraph", "fixed-paragraph"],
}
},

addProseMirrorPlugins() {
Expand Down

0 comments on commit ddb8f77

Please sign in to comment.