게시글 제목 입력과 태그 표시 수정

This commit is contained in:
2026-05-13 15:58:22 +09:00
parent 52f22b4ff1
commit 020471a1b8
8 changed files with 40 additions and 8 deletions

View File

@@ -47,6 +47,7 @@ const isRestoringAutosave = ref(false)
const isSettingsOpen = ref(true)
const tagInput = ref('')
const isTagInputComposing = ref(false)
const isTitleInputComposing = ref(false)
const activeMediaPickerTab = ref('upload')
const selectedMediaPickerUrl = ref('')
const savedPostSnapshot = ref('')
@@ -562,9 +563,15 @@ const dropFeaturedImage = async (event) => {
/**
* 제목 입력 후 본문 에디터로 이동
* @param {KeyboardEvent} event - 키보드 이벤트
* @returns {void}
*/
const focusContentEditor = () => {
const focusContentEditor = (event) => {
if (event?.isComposing || isTitleInputComposing.value || event?.keyCode === 229) {
return
}
event?.preventDefault()
blockEditor.value?.focusFirstBlock()
}
@@ -716,7 +723,9 @@ defineExpose({
type="text"
placeholder="제목"
required
@keydown.enter.prevent="focusContentEditor"
@keydown.enter="focusContentEditor"
@compositionstart="isTitleInputComposing = true"
@compositionend="isTitleInputComposing = false"
>
<div