feat(editor): select language

This commit is contained in:
Anthony Fu 2022-11-30 06:47:24 +08:00
parent c85d9bb913
commit 0acc0f7689
6 changed files with 97 additions and 7 deletions

View file

@ -30,7 +30,7 @@ const { editor } = useTiptap({
get: () => draft.params.status,
set: newVal => draft.params.status = newVal,
}),
placeholder: draft.placeholder,
placeholder: computed(() => draft.placeholder),
autofocus: shouldExpanded,
onSubmit: publish,
onFocus() { isExpanded = true },