@wangeditor-next/plugin-float-image 0.1.0 → 0.1.2
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/core/src/editor/helper.d.ts +8 -0
- package/dist/core/src/render/helper.d.ts +2 -1
- package/dist/core/src/utils/dom.d.ts +11 -10
- package/dist/css/style.css +1 -29
- package/dist/index.js +2 -1006
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -1002
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-float-image/src/constants/icon-svg.d.ts +1 -1
- package/dist/plugin-float-image/src/index.d.ts +1 -1
- package/dist/plugin-float-image/src/module/custom-types.d.ts +3 -1
- package/dist/plugin-float-image/src/module/elem-to-html.d.ts +1 -1
- package/dist/plugin-float-image/src/module/index.d.ts +1 -1
- package/dist/plugin-float-image/src/module/local.d.ts +1 -1
- package/dist/plugin-float-image/src/module/menu/FloatBase.d.ts +4 -4
- package/dist/plugin-float-image/src/module/menu/FloatLeft.d.ts +1 -1
- package/dist/plugin-float-image/src/module/menu/FloatNone.d.ts +1 -1
- package/dist/plugin-float-image/src/module/menu/FloatRight.d.ts +1 -1
- package/dist/plugin-float-image/src/module/menu/index.d.ts +2 -2
- package/dist/plugin-float-image/src/module/parse-elem-html.d.ts +1 -1
- package/dist/plugin-float-image/src/module/plugin.d.ts +1 -1
- package/dist/plugin-float-image/src/utils/dom.d.ts +3 -2
- package/package.json +2 -2
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* @description Processing blob url
|
3
|
+
* @author CodePencil
|
4
|
+
*/
|
5
|
+
/** 提取 blob URL */
|
6
|
+
export declare function extractBlobUrlFromImg(html: string): string | null;
|
7
|
+
/** 将 blob URL 转换为 base64 */
|
8
|
+
export declare function convertBlobUrlToBase64(blobUrl: string): Promise<string | null>;
|
@@ -2,5 +2,6 @@
|
|
2
2
|
* @description formats helper
|
3
3
|
* @author wangfupeng
|
4
4
|
*/
|
5
|
-
|
5
|
+
import { ElementType } from 'packages/custom-types';
|
6
|
+
export declare function genElemId(type: ElementType, id: string): string;
|
6
7
|
export declare function genTextId(id: string): string;
|
@@ -12,9 +12,20 @@ import DOMSelection = globalThis.Selection;
|
|
12
12
|
import DOMStaticRange = globalThis.StaticRange;
|
13
13
|
export { Dom7Array } from 'dom7';
|
14
14
|
export default $;
|
15
|
+
export declare enum NodeType {
|
16
|
+
ELEMENT_NODE = 1,
|
17
|
+
TEXT_NODE = 3,
|
18
|
+
CDATA_SECTION_NODE = 4,
|
19
|
+
PROCESSING_INSTRUCTION_NODE = 7,
|
20
|
+
COMMENT_NODE = 8,
|
21
|
+
DOCUMENT_NODE = 9,
|
22
|
+
DOCUMENT_TYPE_NODE = 10,
|
23
|
+
DOCUMENT_FRAGMENT_NODE = 11
|
24
|
+
}
|
15
25
|
export declare const isDocument: (value: any) => value is Document;
|
16
26
|
export declare const isShadowRoot: (value: any) => value is ShadowRoot;
|
17
27
|
export declare const isDataTransfer: (value: any) => value is DataTransfer;
|
28
|
+
export declare const isUnprocessedListElement: (el: Element) => boolean;
|
18
29
|
export declare const isHTMLElememt: (value: any) => value is HTMLElement;
|
19
30
|
export { DOMComment, DOMElement, DOMNode, DOMRange, DOMSelection, DOMStaticRange, DOMText, };
|
20
31
|
export type DOMPoint = [Node, number];
|
@@ -85,16 +96,6 @@ export declare function getFirstVoidChild(elem: DOMElement): DOMElement | null;
|
|
85
96
|
* @param handler handler
|
86
97
|
*/
|
87
98
|
export declare function walkTextNodes(elem: DOMElement, handler: (textNode: DOMNode, parent: DOMElement) => void): void;
|
88
|
-
export declare enum NodeType {
|
89
|
-
ELEMENT_NODE = 1,
|
90
|
-
TEXT_NODE = 3,
|
91
|
-
CDATA_SECTION_NODE = 4,
|
92
|
-
PROCESSING_INSTRUCTION_NODE = 7,
|
93
|
-
COMMENT_NODE = 8,
|
94
|
-
DOCUMENT_NODE = 9,
|
95
|
-
DOCUMENT_TYPE_NODE = 10,
|
96
|
-
DOCUMENT_FRAGMENT_NODE = 11
|
97
|
-
}
|
98
99
|
/**
|
99
100
|
* 获取 tagName lower-case
|
100
101
|
* @param $elem $elem
|
package/dist/css/style.css
CHANGED
@@ -1,29 +1 @@
|
|
1
|
-
.w-e-textarea-link-card-container {
|
2
|
-
width: 450px;
|
3
|
-
margin: 10px auto;
|
4
|
-
background-color: var(--w-e-textarea-slight-bg-color);
|
5
|
-
border-radius: 10px;
|
6
|
-
display: flex;
|
7
|
-
padding: 10px 20px;
|
8
|
-
}
|
9
|
-
.w-e-textarea-link-card-text-container {
|
10
|
-
flex: 1;
|
11
|
-
padding-right: 20px;
|
12
|
-
}
|
13
|
-
.w-e-textarea-link-card-text-container p {
|
14
|
-
margin-top: 5px !important;
|
15
|
-
font-weight: bold;
|
16
|
-
}
|
17
|
-
.w-e-textarea-link-card-text-container span {
|
18
|
-
opacity: 0.5;
|
19
|
-
}
|
20
|
-
.w-e-textarea-link-card-icon-container {
|
21
|
-
width: 64px;
|
22
|
-
overflow: hidden;
|
23
|
-
}
|
24
|
-
.w-e-textarea-link-card-icon-container img {
|
25
|
-
width: 100%;
|
26
|
-
height: 100%;
|
27
|
-
-o-object-fit: contain;
|
28
|
-
object-fit: contain;
|
29
|
-
}
|
1
|
+
.w-e-textarea-link-card-container{background-color:var(--w-e-textarea-slight-bg-color);border-radius:10px;display:flex;margin:10px auto;padding:10px 20px;width:450px}.w-e-textarea-link-card-text-container{flex:1;padding-right:20px}.w-e-textarea-link-card-text-container p{font-weight:700;margin-top:5px!important}.w-e-textarea-link-card-text-container span{opacity:.5}.w-e-textarea-link-card-icon-container{overflow:hidden;width:64px}.w-e-textarea-link-card-icon-container img{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}
|