dragon-editor 3.4.2 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -7,7 +7,7 @@ export declare function _createTextBlock(data?: DETextBlock): HTMLParagraphEleme
|
|
|
7
7
|
export declare function _createHeadingBlock(data: DEHeadingBlock): HTMLHeadingElement;
|
|
8
8
|
export declare function _createListBlock(data: DEListBlock): HTMLElement;
|
|
9
9
|
export declare function _createListItemBlock(child?: DEListItem): HTMLLIElement;
|
|
10
|
-
export declare function _createImageBlock(data: DEImageBlock, imageHostURL
|
|
10
|
+
export declare function _createImageBlock(data: DEImageBlock, imageHostURL?: string): HTMLDivElement;
|
|
11
11
|
export declare function _createCodeBlock(data: DECodeBlock): HTMLDivElement;
|
|
12
12
|
export declare function _generateId(): string;
|
|
13
13
|
export declare function _createCustomBlock(data: DECustomBlock): HTMLDivElement;
|
|
@@ -68,7 +68,7 @@ export function _createListItemBlock(child = { textContent: "", classList: [] })
|
|
|
68
68
|
}
|
|
69
69
|
return $li;
|
|
70
70
|
}
|
|
71
|
-
export function _createImageBlock(data, imageHostURL) {
|
|
71
|
+
export function _createImageBlock(data, imageHostURL = "") {
|
|
72
72
|
const $wrap = document.createElement("div");
|
|
73
73
|
const $div = document.createElement("div");
|
|
74
74
|
const $leftBtn = document.createElement("button");
|