Skip to content

Commit

Permalink
Merge pull request #59 from lovefields/dev
Browse files Browse the repository at this point in the history
3.4.3
  • Loading branch information
lovefields authored Oct 13, 2024
2 parents e2a738f + 7de6388 commit 4ca53b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dragon-editor",
"version": "3.4.2",
"version": "3.4.3",
"description": "Javascript WYSIWYG editor in Nuxt3!",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/utils/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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");
Expand Down

0 comments on commit 4ca53b7

Please sign in to comment.