@itshixun/qckeditor-vue2 1.2.12 → 1.2.14
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/README.md +20 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1809 -1740
- package/dist/src/components/QCKContent.d.ts +11 -0
- package/dist/src/components/QCKContent.d.ts.map +1 -1
- package/dist/src/components/QCKEditorPro.d.ts +1 -1
- package/dist/src/utils/contentStyle.d.ts +17 -0
- package/dist/src/utils/contentStyle.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -21,6 +21,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
|
+
/** 为 true 时在渲染前恢复块级图片默认结构并清除图片/表格的固定尺寸样式(行内图片保持原样,独占一段的行内图片转为块级) */
|
|
25
|
+
formatImageTableStyle: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
24
29
|
math: {
|
|
25
30
|
type: BooleanConstructor;
|
|
26
31
|
default: boolean;
|
|
@@ -116,6 +121,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
116
121
|
type: BooleanConstructor;
|
|
117
122
|
default: boolean;
|
|
118
123
|
};
|
|
124
|
+
/** 为 true 时在渲染前恢复块级图片默认结构并清除图片/表格的固定尺寸样式(行内图片保持原样,独占一段的行内图片转为块级) */
|
|
125
|
+
formatImageTableStyle: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
119
129
|
math: {
|
|
120
130
|
type: BooleanConstructor;
|
|
121
131
|
default: boolean;
|
|
@@ -188,6 +198,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
188
198
|
content: string;
|
|
189
199
|
containerClass: string;
|
|
190
200
|
sanitize: boolean;
|
|
201
|
+
formatImageTableStyle: boolean;
|
|
191
202
|
highlightCode: boolean;
|
|
192
203
|
horizontalPadding: string | number;
|
|
193
204
|
verticalPadding: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QCKContent.d.ts","sourceRoot":"","sources":["../../../src/components/QCKContent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEzG,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAClC,OAAO,uCAAuC,CAAC;AAK/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"QCKContent.d.ts","sourceRoot":"","sources":["../../../src/components/QCKContent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEzG,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAClC,OAAO,uCAAuC,CAAC;AAK/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;IA2HzE,oEAAoE;;;;;;;;;;;;;;cAclD,QAAQ,CAAC,MAAM,CAAC;;;IAGlC,qFAAqF;;cAEzD,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,qEAAqE;;cAEzC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,oFAAoF;;;;;;cAMvD,QAAQ,CAAC,OAAO,GAAG,sBAAsB,CAAC;;;IAGvE,8DAA8D;;cAEjC,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,sCAAsC;;;;;IAKtC,mBAAmB;;;;;IAKnB,mCAAmC;;;;;IAKnC,iCAAiC;;;;;IAKjC,iDAAiD;;;;;;;;;;;;;;;;;kCA2MZ,UAAU;;;;;;;;;;;;;;;;;;;;;;IAxQ/C,oEAAoE;;;;;;;;;;;;;;cAclD,QAAQ,CAAC,MAAM,CAAC;;;IAGlC,qFAAqF;;cAEzD,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,qEAAqE;;cAEzC,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;;;IAGrD,oFAAoF;;;;;;cAMvD,QAAQ,CAAC,OAAO,GAAG,sBAAsB,CAAC;;;IAGvE,8DAA8D;;cAEjC,QAAQ,CAAC,OAAO,GAAG,oBAAoB,CAAC;;;IAGrE,sCAAsC;;;;;IAKtC,mBAAmB;;;;;IAKnB,mCAAmC;;;;;IAKnC,iCAAiC;;;;;IAKjC,iDAAiD;;;;;;;;;;;;;;;;;;;;;;;;;;AArFrD,wBAkcG"}
|
|
@@ -291,6 +291,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
291
291
|
fitHeight: boolean;
|
|
292
292
|
imageRetry: boolean | QCKImageRetryOptions;
|
|
293
293
|
enableCodeHidden: boolean;
|
|
294
|
+
height: number;
|
|
294
295
|
content: string;
|
|
295
296
|
containerClass: string;
|
|
296
297
|
sanitize: boolean;
|
|
@@ -302,7 +303,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
302
303
|
copySuccessDuration: number;
|
|
303
304
|
disableExit: boolean;
|
|
304
305
|
minHeight: number;
|
|
305
|
-
height: number;
|
|
306
306
|
contentBgColor: string;
|
|
307
307
|
contentBgHoverColor: string;
|
|
308
308
|
borderRadius: number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCKContent 图片/表格样式格式化:
|
|
3
|
+
* - 块级图片(位于非表格 figure 内)恢复为 CKEditor 默认的 <figure class="image"> 结构,
|
|
4
|
+
* 不保留缩放和自定义外观。
|
|
5
|
+
* - 独占段落的行内图片(<p> 中唯一内容,允许 span.image-inline/a/picture 包裹)转换为块级 figure.image。
|
|
6
|
+
* - 其余行内图片(与其他内容共处一段、table 内段落中的图片)保持原样,不做任何处理。
|
|
7
|
+
* - 表格移除源 HTML 的固定尺寸,改为随容器收缩的响应式宽度。
|
|
8
|
+
*
|
|
9
|
+
* 仅处理传入的 HTML 字符串,不修改组件的原始绑定数据。
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* 将富文本中的块级图片和表格恢复为适合只读展示的默认形式;
|
|
13
|
+
* 独占段落的行内图片转换为块级 figure,其余行内图片保持原样。
|
|
14
|
+
* 重复执行结果稳定(幂等):转换后的 figure 不会再次拆分或包裹。
|
|
15
|
+
*/
|
|
16
|
+
export declare function formatImageTableStyle(html: string): string;
|
|
17
|
+
//# sourceMappingURL=contentStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentStyle.d.ts","sourceRoot":"","sources":["../../../src/utils/contentStyle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAqJH;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAa1D"}
|