From 49d50629214e45d5f10f7c9920b307f7c43c3873 Mon Sep 17 00:00:00 2001 From: Johannes Raggam Date: Wed, 21 Aug 2024 13:15:44 +0200 Subject: [PATCH] fix: Fix a deprecated tiptap method in the trailing-node extension. --- src/extensions/trailing-node.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/extensions/trailing-node.js b/src/extensions/trailing-node.js index 9cc51bf..3ff0f04 100644 --- a/src/extensions/trailing-node.js +++ b/src/extensions/trailing-node.js @@ -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() {