1
0

refactor: fix typo

This commit is contained in:
Daniel Roe 2022-11-25 14:07:31 +00:00
parent f7dff673ad
commit aac689a2f5
No known key found for this signature in database
GPG Key ID: 22D5008E4F5D9B55
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ const { editor } = useTiptap({
content: toRef(draft.params, 'status'),
placeholder,
autofocus: isExpanded,
onSubimit: publish,
onSubmit: publish,
onFocus() { isExpanded = true },
onPaste: handlePaste,
})

View File

@ -14,7 +14,7 @@ import { HashSuggestion, MentionSuggestion } from './tiptap/suggestion'
export interface UseTiptapOptions {
content: Ref<string | undefined>
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
},
}