@itshixun/qckeditor-vue2 1.0.9 → 1.0.11

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.
@@ -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;;;cAUzC,QAAQ,CAAC,GAAG,CAAC;;;;cAIf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAJpB,QAAQ,CAAC,GAAG,CAAC;;;;cAIf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT5C,wBAwMG"}
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;;;cAazC,QAAQ,CAAC,GAAG,CAAC;;;;cAIf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAJpB,QAAQ,CAAC,GAAG,CAAC;;;;cAIf,QAAQ,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAT5C,wBAwMG"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 修复 CKEditor 5 Rect.toAbsoluteRect() 在 .ck-body-wrapper 为 positioned ancestor 时
3
+ * 重复叠加 document scroll 偏移的问题。
4
+ *
5
+ * 背景:.ck-body-wrapper 需要 position: relative + z-index 以覆盖 el-drawer 等弹层。
6
+ * 但这会使它成为 balloon panel 等 absolute 元素的 offsetParent。
7
+ * CKEditor 5 的 toAbsoluteRect() 先把 viewport 坐标转成 document 坐标(+scroll),
8
+ * 再按 positioned ancestor 的 viewport 位置反向补偿,导致多算一次 scroll。
9
+ *
10
+ * 此 patch 仅对 offsetParent 为 .ck-body-wrapper 的元素,手动计算相对于 wrapper
11
+ * padding box 的坐标,避免重复叠加 scroll。
12
+ */
13
+ export declare function patchRectToAbsoluteRect(): void;
14
+ //# sourceMappingURL=rectPatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rectPatch.d.ts","sourceRoot":"","sources":["../../../src/utils/rectPatch.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAoC9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itshixun/qckeditor-vue2",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Vue2 components for CKEditor 5",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",