@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.js CHANGED
@@ -27355,7 +27355,7 @@ class DocEditor {
27355
27355
  canSetCursor() {
27356
27356
  //判断当前光标是否可以放置,可以设置返回true,否则返回false
27357
27357
  //用法:合并病程录,分开处理多个病程录录入权限
27358
- const event = { result: true };
27358
+ const event = { result: true, ss: this.selectionState };
27359
27359
  this.onBeforeSetCursorSubject.next(event);
27360
27360
  if (!event.result) {
27361
27361
  return false;
@@ -27535,6 +27535,12 @@ class DocEditor {
27535
27535
  const tb = TableUtil.createTable(rows, cols, this.selectionState);
27536
27536
  this.documentChange.insertTable(tb);
27537
27537
  }
27538
+ /**
27539
+ * 插入软换行符
27540
+ */
27541
+ insertSoftBr() {
27542
+ this.documentChange.insertSoftBr();
27543
+ }
27538
27544
  /**
27539
27545
  * 打印所有文档
27540
27546
  */
@@ -28346,7 +28352,7 @@ class DocEditor {
28346
28352
  rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
28347
28353
  }
28348
28354
  version() {
28349
- return "2.0.50";
28355
+ return "2.0.51";
28350
28356
  }
28351
28357
  }
28352
28358