@ones-editor/editor 2.9.8-beta.56 → 2.9.8-beta.58

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
@@ -29317,6 +29317,12 @@ var __publicField = (obj, key, value) => {
29317
29317
  tryDeleteEmptyBlock(editor, block);
29318
29318
  editor.selection.selectBlock(prevBlock2, getBlockTextLength$6(editor, prevBlock2));
29319
29319
  }
29320
+ } else {
29321
+ if (!isTitleBlock$2(block) && isHeadingBlock$1(block)) {
29322
+ const blockData = editor.getBlockData(block);
29323
+ const { heading, id, type, ...rest } = blockData;
29324
+ editorUpdateBlockData(editor, block, rest, editor.selection.range.toDocRange());
29325
+ }
29320
29326
  }
29321
29327
  }
29322
29328
  } else {
@@ -54871,7 +54877,6 @@ ${codeText}
54871
54877
  id: "editor-toolbar",
54872
54878
  overflowBoundary: popover == null ? void 0 : popover.overflowBoundary,
54873
54879
  refuseOverflow: true,
54874
- padding: 20,
54875
54880
  showName: clientType.isMobile,
54876
54881
  autoClose: clientType.isMobile ? true : void 0,
54877
54882
  appendTo: (objectToolbar == null ? void 0 : objectToolbar.appendTo) || (popover == null ? void 0 : popover.appendTo)
@@ -95869,7 +95874,7 @@ ${JSON.stringify(error2, null, 2)}`);
95869
95874
  }
95870
95875
  }
95871
95876
  });
95872
- editor.version = "2.9.8-beta.56";
95877
+ editor.version = "2.9.8-beta.58";
95873
95878
  return editor;
95874
95879
  }
95875
95880
  function isDoc(doc2) {
@@ -95934,6 +95939,7 @@ ${JSON.stringify(error2, null, 2)}`);
95934
95939
  editor.input.addHandler(new OnesEditorPasteHandler(editor));
95935
95940
  editor.input.addHandler(new BlockLockerPasteHandler());
95936
95941
  editor.input.addHandler(new ListPasteHandler());
95942
+ editor.doc.registerCallback(new HeadingBlockDocEvents(editor));
95937
95943
  editor.addCustom(
95938
95944
  "editor-image-preview",
95939
95945
  () => new ImagePreviewHandler(editor, (editor2, img) => {
@@ -96002,7 +96008,7 @@ ${JSON.stringify(error2, null, 2)}`);
96002
96008
  OnesEditorDropTarget.register(editor);
96003
96009
  OnesEditorTocProvider.register(editor);
96004
96010
  OnesEditorExclusiveBlock.register(editor);
96005
- editor.version = "2.9.8-beta.56";
96011
+ editor.version = "2.9.8-beta.58";
96006
96012
  return editor;
96007
96013
  }
96008
96014
  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.56",
3
+ "version": "2.9.8-beta.58",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {