From aac689a2f59108741befe88f2a1e2fa9e922316a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 25 Nov 2022 14:07:31 +0000 Subject: [PATCH] refactor: fix typo --- components/publish/PublishWidget.vue | 2 +- composables/tiptap.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 561d7634..db702924 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -24,7 +24,7 @@ const { editor } = useTiptap({ content: toRef(draft.params, 'status'), placeholder, autofocus: isExpanded, - onSubimit: publish, + onSubmit: publish, onFocus() { isExpanded = true }, onPaste: handlePaste, }) diff --git a/composables/tiptap.ts b/composables/tiptap.ts index bcc914a7..2c968a80 100644 --- a/composables/tiptap.ts +++ b/composables/tiptap.ts @@ -14,7 +14,7 @@ import { HashSuggestion, MentionSuggestion } from './tiptap/suggestion' export interface UseTiptapOptions { content: Ref placeholder: string - onSubimit: () => void + onSubmit: () => void onFocus: () => void onPaste: (event: ClipboardEvent) => void autofocus: boolean @@ -51,7 +51,7 @@ export function useTiptap(options: UseTiptapOptions) { addKeyboardShortcuts() { return { 'Mod-Enter': () => { - options.onSubimit() + options.onSubmit() return true }, }