@hailin-zheng/editor-core 1.0.54 → 1.0.57
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/index-cjs.js +21 -20
- package/index-cjs.js.map +1 -1
- package/index.js +21 -20
- package/index.js.map +1 -1
- package/med_editor/framework/document-selection.d.ts +6 -3
- package/package.json +1 -1
@@ -12,8 +12,8 @@ export declare class DocumentSelection {
|
|
12
12
|
endHitInfo: HitEventInfo;
|
13
13
|
}): void;
|
14
14
|
/**
|
15
|
-
|
16
|
-
|
15
|
+
* 获取选区共同的祖先控件
|
16
|
+
*/
|
17
17
|
static getAncestorCommonControl(startControl: LeafElement, endControl: LeafElement): BranchElement;
|
18
18
|
/**
|
19
19
|
* 获取向上的嵌套父级节点集合
|
@@ -33,7 +33,6 @@ export declare class DocumentSelection {
|
|
33
33
|
* @private
|
34
34
|
*/
|
35
35
|
private getEnableTrackChanges;
|
36
|
-
private compareSelectionEquals;
|
37
36
|
/**
|
38
37
|
* 转换选区内容
|
39
38
|
* 处理结束选区在开始选区之前
|
@@ -65,6 +64,10 @@ export declare class SelectionState {
|
|
65
64
|
enableTrackChanges: boolean;
|
66
65
|
constructor();
|
67
66
|
clear(): void;
|
67
|
+
/**
|
68
|
+
* 当前选区是否发生改变
|
69
|
+
*/
|
70
|
+
rangeDirty: boolean;
|
68
71
|
addRange(range: SelectionRange): void;
|
69
72
|
resetRange(startControl: Element, startOffset: number): SelectionRange;
|
70
73
|
surround(ele: Element): void;
|