@itshixun/qckeditor-vue2 1.2.12 → 1.2.13
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 +18 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1791 -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 +13 -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,0CAA0C;;;;;;;;;;;;;;cAcxB,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,0CAA0C;;;;;;;;;;;;;;cAcxB,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,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCKContent 图片/表格样式格式化:
|
|
3
|
+
* - 图片统一恢复为 CKEditor 默认的 <figure class="image"> 块级结构,不保留缩放和自定义外观。
|
|
4
|
+
* - 表格移除源 HTML 的固定尺寸,改为随容器收缩的响应式宽度。
|
|
5
|
+
*
|
|
6
|
+
* 仅处理传入的 HTML 字符串,不修改组件的原始绑定数据。
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 将富文本中的图片和表格恢复为适合只读展示的默认形式。
|
|
10
|
+
* 重复执行不会重复包裹图片或累积样式。
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatImageTableStyle(html: string): string;
|
|
13
|
+
//# sourceMappingURL=contentStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentStyle.d.ts","sourceRoot":"","sources":["../../../src/utils/contentStyle.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkGH;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAc1D"}
|