@hailin-zheng/editor-core 1.0.44 → 1.0.45
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.
@@ -25,7 +25,7 @@ export declare class ElementTrackManage {
|
|
25
25
|
generateSelectionLog(): void;
|
26
26
|
clear(): void;
|
27
27
|
/**
|
28
|
-
*
|
28
|
+
* 生成历史操作信息
|
29
29
|
*/
|
30
30
|
generateTrack(): void;
|
31
31
|
/**
|
@@ -99,6 +99,5 @@ interface SelectionLog {
|
|
99
99
|
endIndex: number;
|
100
100
|
endOffset: number;
|
101
101
|
editable: boolean;
|
102
|
-
collapsed: boolean;
|
103
102
|
}
|
104
103
|
export {};
|
@@ -61,7 +61,7 @@ export declare function setTraceTrackingFlag(flag: boolean): void;
|
|
61
61
|
* 抑制变更的追踪修改
|
62
62
|
* 在某些情况下不需要进行修改的跟踪,例如:在初始化加载文档时,为了提高效率,增加底层开关
|
63
63
|
*/
|
64
|
-
export declare function suppressTracking(cb: () =>
|
64
|
+
export declare function suppressTracking<T>(cb: () => T): T;
|
65
65
|
export declare function insertEle(ele: Element): void;
|
66
66
|
export declare function removeEle(ele: Element): void;
|
67
67
|
export declare function inputText(ele: Element, startIndex: number, input: string): void;
|