diff --git a/package.json b/package.json index 8fc4a06..6850e77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dragon-editor", - "version": "3.4.2", + "version": "3.4.3", "description": "Javascript WYSIWYG editor in Nuxt3!", "repository": { "type": "git", diff --git a/src/runtime/utils/block.ts b/src/runtime/utils/block.ts index ab264cd..7b8b9f5 100644 --- a/src/runtime/utils/block.ts +++ b/src/runtime/utils/block.ts @@ -95,7 +95,7 @@ export function _createListItemBlock(child: DEListItem = { textContent: "", clas } // 이미지 블럭 생성 -export function _createImageBlock(data: DEImageBlock, imageHostURL: string): HTMLDivElement { +export function _createImageBlock(data: DEImageBlock, imageHostURL: string = ""): HTMLDivElement { const $wrap = document.createElement("div") as HTMLDivElement; const $div = document.createElement("div") as HTMLDivElement; const $leftBtn = document.createElement("button") as HTMLButtonElement; @@ -104,7 +104,7 @@ export function _createImageBlock(data: DEImageBlock, imageHostURL: string): HTM const $p = document.createElement("p") as HTMLParagraphElement; $wrap.classList.add("de-block", "de-image-block", ...data.classList); - $div.classList.add("de-image-area"); + $div.classList.add("de-image-area");ƒ $leftBtn.classList.add("de-btn", "de-btn-left"); $rightBtn.classList.add("de-btn", "de-btn-right"); $image.classList.add("de-img");