@hailin-zheng/editor-core 2.1.11 → 2.1.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/index-cjs.js +180 -125
- package/index-cjs.js.map +1 -1
- package/index.js +175 -126
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +11 -1
- package/med_editor/framework/document-change.d.ts +1 -1
- package/med_editor/framework/impl/index.d.ts +2 -0
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ContentMenuItem } from './framework/element-event-define';
|
2
2
|
import { ElementReader } from './framework/element-reader';
|
3
3
|
import { SelectionState } from './framework/document-selection';
|
4
|
-
import { BranchElement, Element, ICancelTokenFn, LeafElement, MarginProps, OrientType, PageLayoutMode, Position, Rect, ViewOptions } from './framework/element-define';
|
4
|
+
import { BranchElement, Element, ICancelTokenFn, LeafElement, MarginProps, OrientType, PageLayoutMode, Position, Rect, SerializeProps, ViewOptions } from './framework/element-define';
|
5
5
|
import { DataElementInlineGroup, DataElementLeaf, DocumentElement, ParagraphElement, TableCellElement, TableElement, TableRowElement } from './framework/impl';
|
6
6
|
import { CellDiagonal, ParagraphNumberType, ParagraphProps, TextProps } from './framework/element-props';
|
7
7
|
import { EditorContext } from './framework/document-context';
|
@@ -193,6 +193,16 @@ export declare class DocEditor {
|
|
193
193
|
*/
|
194
194
|
createNewDoc(doc?: DocumentElement | null, name?: string): void;
|
195
195
|
destroy(): void;
|
196
|
+
/**
|
197
|
+
* 将元素序列化为字符串,和serialize方法不同的是,该方法区别在于对留痕信息的处理
|
198
|
+
* @param ele
|
199
|
+
*/
|
200
|
+
serializeString(ele: Element): string;
|
201
|
+
/**
|
202
|
+
* 将元素序列化为JSON对象,可进一步操作该对象序列化为JSON对象
|
203
|
+
* @param ele
|
204
|
+
*/
|
205
|
+
serialize(ele: Element): SerializeProps | null;
|
196
206
|
/**
|
197
207
|
* 获取选区文本属性
|
198
208
|
* @returns
|
@@ -276,7 +276,7 @@ export declare class DocumentChange {
|
|
276
276
|
* @param text
|
277
277
|
*/
|
278
278
|
removeEmptyText(text: TextGroupElement): void;
|
279
|
-
|
279
|
+
setCursorForDeleteAction(control: Element): void;
|
280
280
|
getCursorElementByDeleteAction(control: Element): {
|
281
281
|
ele: LeafElement;
|
282
282
|
offset: number;
|
@@ -26,6 +26,8 @@ export * from './picture/image-impl';
|
|
26
26
|
export * from './radio/radio-impl';
|
27
27
|
export * from './symbol/br-symbol-impl';
|
28
28
|
export * from './symbol/p-symbol-impl';
|
29
|
+
export * from './symbol/page-br-symbol-impl';
|
30
|
+
export * from './symbol/tab-symbol-impl';
|
29
31
|
export * from './table/table-cell-impl';
|
30
32
|
export * from './table/table-impl';
|
31
33
|
export * from './table/table-row-impl';
|