@ones-editor/editor 2.9.8-beta.63 → 2.9.8-beta.64

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/dist/index.js CHANGED
@@ -29318,10 +29318,11 @@ var __publicField = (obj, key, value) => {
29318
29318
  editor.selection.selectBlock(prevBlock2, getBlockTextLength$6(editor, prevBlock2));
29319
29319
  }
29320
29320
  } else {
29321
- if (!isTitleBlock$2(block) && isHeadingBlock$1(block)) {
29321
+ if (!isTitleBlock$2(block) && isHeadingBlock$1(block) && getBlockTextLength$6(editor, block) === 0) {
29322
29322
  const blockData = editor.getBlockData(block);
29323
29323
  const { heading, id, type, ...rest } = blockData;
29324
29324
  editorUpdateBlockData(editor, block, rest, editor.selection.range.toDocRange());
29325
+ editor.emit("selectionChanged", editor);
29325
29326
  }
29326
29327
  }
29327
29328
  }
@@ -95901,7 +95902,7 @@ ${JSON.stringify(error2, null, 2)}`);
95901
95902
  }
95902
95903
  }
95903
95904
  });
95904
- editor.version = "2.9.8-beta.63";
95905
+ editor.version = "2.9.8-beta.64";
95905
95906
  return editor;
95906
95907
  }
95907
95908
  function isDoc(doc2) {
@@ -96035,7 +96036,7 @@ ${JSON.stringify(error2, null, 2)}`);
96035
96036
  OnesEditorDropTarget.register(editor);
96036
96037
  OnesEditorTocProvider.register(editor);
96037
96038
  OnesEditorExclusiveBlock.register(editor);
96038
- editor.version = "2.9.8-beta.63";
96039
+ editor.version = "2.9.8-beta.64";
96039
96040
  return editor;
96040
96041
  }
96041
96042
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.9.8-beta.63",
3
+ "version": "2.9.8-beta.64",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {