Skip to content

Commit

Permalink
fix: Fix a deprecated tiptap method in the trailing-node extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
thet committed Aug 21, 2024
1 parent d1b5704 commit 49d5062
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 49d5062

Please sign in to comment.