@hailin-zheng/editor-core 1.1.6 → 1.1.8
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 +67 -36
- package/index-cjs.js.map +1 -1
- package/index.js +67 -36
- package/index.js.map +1 -1
- package/med_editor/framework/element-serialize.d.ts +5 -0
- package/med_editor/framework/impl/table/table-util.d.ts +7 -0
- package/med_editor/texteditor.d.ts +12 -0
- package/package.json +1 -1
@@ -1,6 +1,11 @@
|
|
1
1
|
import { SelectionState } from "./document-selection";
|
2
2
|
import { BranchElement, Element, SerializeProps, ViewOptions } from "./element-define";
|
3
3
|
export declare class ElementSerialize {
|
4
|
+
/**
|
5
|
+
* 将当前文档对象构建并输出到标准的JSON对象
|
6
|
+
* @param element
|
7
|
+
* @param viewOptions
|
8
|
+
*/
|
4
9
|
static serialize(element: Element, viewOptions: ViewOptions): SerializeProps | null;
|
5
10
|
static serializeString(element: Element, options?: {
|
6
11
|
all: boolean;
|
@@ -84,6 +84,13 @@ export declare class TableUtil {
|
|
84
84
|
private static restoreCellMerge;
|
85
85
|
private static getVMergeRows;
|
86
86
|
static insertCol(ss: SelectionState, insertColIndex: number): void;
|
87
|
+
/**
|
88
|
+
* 在指定位置插入行
|
89
|
+
* 动作:在指定行上方或者下方插入行
|
90
|
+
* 原则:插入的行单元格尽量不纵向合并
|
91
|
+
* @param ss
|
92
|
+
* @param insertRowIndex
|
93
|
+
*/
|
87
94
|
static insertRow(ss: SelectionState, insertRowIndex: number): TableRowElement;
|
88
95
|
/**
|
89
96
|
* 在下方插入行
|
@@ -303,6 +303,18 @@ export declare class CanvasTextEditor extends AbsolutePanel {
|
|
303
303
|
* @private
|
304
304
|
*/
|
305
305
|
private drawCaret;
|
306
|
+
private generatorDoc;
|
307
|
+
/**
|
308
|
+
* 设置关键字
|
309
|
+
* 匹配用户输入的关键字,回调到应用业务中处理
|
310
|
+
*/
|
311
|
+
setKeywords(keys: Array<string>, cb: (item: string) => void): void;
|
312
|
+
/**
|
313
|
+
* 注册编辑器格式读取器
|
314
|
+
*/
|
315
|
+
registerReaderFactory(handler: IReaderManager): void;
|
316
|
+
}
|
317
|
+
export interface IReaderManager {
|
306
318
|
}
|
307
319
|
export declare type EditorCurrentPos = {
|
308
320
|
pos: Position;
|