@hailin-zheng/editor-core 2.0.50 → 2.0.51
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 +8 -2
- package/index-cjs.js.map +1 -1
- package/index.js +8 -2
- package/index.js.map +1 -1
- package/med_editor/doc-editor.d.ts +6 -2
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -27385,7 +27385,7 @@ class DocEditor {
|
|
27385
27385
|
canSetCursor() {
|
27386
27386
|
//判断当前光标是否可以放置,可以设置返回true,否则返回false
|
27387
27387
|
//用法:合并病程录,分开处理多个病程录录入权限
|
27388
|
-
const event = { result: true };
|
27388
|
+
const event = { result: true, ss: this.selectionState };
|
27389
27389
|
this.onBeforeSetCursorSubject.next(event);
|
27390
27390
|
if (!event.result) {
|
27391
27391
|
return false;
|
@@ -27565,6 +27565,12 @@ class DocEditor {
|
|
27565
27565
|
const tb = TableUtil.createTable(rows, cols, this.selectionState);
|
27566
27566
|
this.documentChange.insertTable(tb);
|
27567
27567
|
}
|
27568
|
+
/**
|
27569
|
+
* 插入软换行符
|
27570
|
+
*/
|
27571
|
+
insertSoftBr() {
|
27572
|
+
this.documentChange.insertSoftBr();
|
27573
|
+
}
|
27568
27574
|
/**
|
27569
27575
|
* 打印所有文档
|
27570
27576
|
*/
|
@@ -28376,7 +28382,7 @@ class DocEditor {
|
|
28376
28382
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28377
28383
|
}
|
28378
28384
|
version() {
|
28379
|
-
return "2.0.
|
28385
|
+
return "2.0.51";
|
28380
28386
|
}
|
28381
28387
|
}
|
28382
28388
|
|