@itshixun/qckeditor-vue2 1.0.7 → 1.0.9
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/index.css +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1149 -1121
- package/dist/src/components/CKEditor.d.ts +1 -1
- package/dist/src/components/CKEditor.d.ts.map +1 -1
- package/dist/src/components/QCKClassic.d.ts +1 -1
- package/dist/src/components/QCKEditorPro.d.ts +1 -1
- package/dist/src/utils/balloonScrollHelper.d.ts +24 -0
- package/dist/src/utils/balloonScrollHelper.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
33
33
|
element: import('vue').Ref<HTMLElement | undefined>;
|
|
34
34
|
instance: import('vue').Ref<Editor | undefined>;
|
|
35
35
|
lastEditorData: import('vue').Ref<string>;
|
|
36
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
36
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
37
37
|
editor: {
|
|
38
38
|
type: PropType<any>;
|
|
39
39
|
required: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CKEditor.d.ts","sourceRoot":"","sources":["../../../src/components/CKEditor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAoE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEtG,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAa,MAAM,WAAW,CAAC;;;
|
|
1
|
+
{"version":3,"file":"CKEditor.d.ts","sourceRoot":"","sources":["../../../src/components/CKEditor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAoE,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEtG,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAa,MAAM,WAAW,CAAC;;;cAUzC,QAAQ,CAAC,GAAG,CAAC;;;;cAIf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAJpB,QAAQ,CAAC,GAAG,CAAC;;;;cAIf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT5C,wBAwMG"}
|
|
@@ -28,7 +28,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
28
28
|
}, {
|
|
29
29
|
ClassicEditor: typeof ClassicEditor;
|
|
30
30
|
ckeditorRef: any;
|
|
31
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
31
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
32
32
|
value: {
|
|
33
33
|
type: StringConstructor;
|
|
34
34
|
default: string;
|
|
@@ -96,7 +96,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
96
96
|
handleReady: (editor: ClassicEditorType) => void;
|
|
97
97
|
handleDestroy: () => void;
|
|
98
98
|
handleInput: (data: string, event: EventInfo, editor: ClassicEditorType) => void;
|
|
99
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("
|
|
99
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("blur" | "focus" | "input" | "ready" | "destroy" | "update:modelValue")[], string, Readonly<import('vue').ExtractPropTypes<{
|
|
100
100
|
value: {
|
|
101
101
|
type: StringConstructor;
|
|
102
102
|
default: string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 为 CKEditor 5 的 balloon panel 提供滚动跟随支持。
|
|
3
|
+
*
|
|
4
|
+
* 背景:CKEditor 5 的 BalloonPanelView.pin() 只监听 document/window 的 scroll/resize。
|
|
5
|
+
* 当编辑器被放在某个非 document 的可滚动容器内时,该容器的 scroll 事件可能无法正确驱动
|
|
6
|
+
* balloon 重新定位,导致 balloon 停留在初始位置。
|
|
7
|
+
*
|
|
8
|
+
* 解决:找到编辑器元素的所有可滚动祖先,给它们添加 scroll 监听;滚动时触发 window resize
|
|
9
|
+
* 事件,强制所有已 pinned 的 balloon panel 重新计算位置。
|
|
10
|
+
*/
|
|
11
|
+
export interface BalloonScrollListeners {
|
|
12
|
+
/**
|
|
13
|
+
* 销毁所有滚动监听。
|
|
14
|
+
*/
|
|
15
|
+
destroy(): void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* 为指定编辑器元素设置 balloon panel 滚动跟随监听。
|
|
19
|
+
*
|
|
20
|
+
* @param editorElement CKEditor 根 DOM 元素。
|
|
21
|
+
* @returns 监听器控制器,销毁编辑器时调用 destroy()。
|
|
22
|
+
*/
|
|
23
|
+
export declare function setupBalloonScrollListeners(editorElement: HTMLElement): BalloonScrollListeners;
|
|
24
|
+
//# sourceMappingURL=balloonScrollHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"balloonScrollHelper.d.ts","sourceRoot":"","sources":["../../../src/utils/balloonScrollHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,WAAW,GAAG,sBAAsB,CA6B9F"}
|