게시글 제목 입력과 태그 표시 수정
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user