diff --git a/package.json b/package.json index 3f0069f..f8edbf7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dragon-editor", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.2.1", "description": "WYSIWYG editor on Nuxt.js", "repository": { "type": "git", diff --git a/src/runtime/core/components/editor/OlBlock.vue b/src/runtime/core/components/editor/OlBlock.vue index 3584c9e..91d90b0 100644 --- a/src/runtime/core/components/editor/OlBlock.vue +++ b/src/runtime/core/components/editor/OlBlock.vue @@ -1,6 +1,6 @@ @@ -10,6 +10,7 @@ import { ref, unref } from "#imports"; import { cursorSelection, listBlock, styleFunctionArgument } from "../../../../types"; import { getArrangementCursorData, setCursor, pasteText, styleSettings, keyboardEvent } from "../../utils"; +const $olItem = ref(); const data = ref({ type: "", id: "", @@ -24,6 +25,10 @@ const emit = defineEmits<{ }>(); data.value = unref(props.modelValue) as listBlock; +if(data.value.childList.length === 0){ + +} + // 키보드 이벤트 할당 function textKeyboardEvent(e: KeyboardEvent) { keyboardEvent("ol", e, emit, updateBlockData); diff --git a/src/runtime/shared/components/DragonEditor.vue b/src/runtime/shared/components/DragonEditor.vue index a032ad2..100203e 100644 --- a/src/runtime/shared/components/DragonEditor.vue +++ b/src/runtime/shared/components/DragonEditor.vue @@ -56,7 +56,7 @@