@wangeditor-next/plugin-float-image 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- export declare function genElemId(id: string): string;
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
@@ -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%}