From 9a078ec0a85547272a99cfc61803a79449d6d79c Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 18 Sep 2024 13:04:00 +0200 Subject: [PATCH] fix(preview): Fix some linting issues Signed-off-by: Jonas --- src/components/Editor/PreviewOptions.vue | 2 +- src/nodes/Paragraph.js | 1 - src/plugins/previewOptions.js | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Editor/PreviewOptions.vue b/src/components/Editor/PreviewOptions.vue index fec02a1177e..a074d03a7c5 100644 --- a/src/components/Editor/PreviewOptions.vue +++ b/src/components/Editor/PreviewOptions.vue @@ -97,7 +97,7 @@ export default { deleteNode() { this.editor.commands.deleteRange({ from: this.offset, - to: this.offset + this.nodeSize + to: this.offset + this.nodeSize, }) }, }, diff --git a/src/nodes/Paragraph.js b/src/nodes/Paragraph.js index 374845d406b..52a912d5c52 100644 --- a/src/nodes/Paragraph.js +++ b/src/nodes/Paragraph.js @@ -4,7 +4,6 @@ */ import TiptapParagraph from '@tiptap/extension-paragraph' -import { VueNodeViewRenderer } from '@tiptap/vue-2' import previewOptions from '../plugins/previewOptions.js' const Paragraph = TiptapParagraph.extend({ diff --git a/src/plugins/previewOptions.js b/src/plugins/previewOptions.js index fc4f008de73..99f1af5f07b 100644 --- a/src/plugins/previewOptions.js +++ b/src/plugins/previewOptions.js @@ -16,6 +16,7 @@ export const previewOptionsPluginKey = new PluginKey('linkParagraphMenu') * Add preview options to linkParagraphs. * * @param {object} options - options for the plugin + * @param {object} options.editor - the tiptap editor * * @return {Plugin} */