라이브 콜아웃 선택 정렬 보정

This commit is contained in:
2026-06-04 15:29:45 +09:00
parent f048eaac2b
commit 67fbba3814
11 changed files with 100 additions and 117 deletions

View File

@@ -45,6 +45,11 @@ const props = defineProps({
type: Number,
default: null
},
/** 이 편집 영역이 대표하는 원본 줄 수 */
sourceLineCount: {
type: Number,
default: 1
},
/** 루트 요소 태그 */
tag: {
type: String,
@@ -538,7 +543,7 @@ const navigateToAdjacentBlock = (direction, column, caretMode = 'column') => {
if (!target) {
if (
direction === 1
&& (resolvedEnterMode.value === 'multiline' || props.arrowExitCreatesLine)
&& props.arrowExitCreatesLine
) {
emit('insert-below', buildInsertBelowPayload())
}
@@ -1017,6 +1022,7 @@ defineExpose({ focusEditor, readEditorValue })
showingRaw ? 'content-markdown-editable-inline--raw' : ''
]"
:data-source-line="sourceLine ?? undefined"
:data-source-line-end="sourceLine !== null ? sourceLine + Math.max(1, sourceLineCount) - 1 : undefined"
contenteditable="true"
spellcheck="true"
@focus="onFocus"