diff --git a/src/components/Editor/PreviewOptions.vue b/src/components/Editor/PreviewOptions.vue index fec02a1177..a074d03a7c 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 374845d406..52a912d5c5 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 fc4f008de7..99f1af5f07 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} */