@ones-editor/editor 2.9.8-beta.42 → 2.9.8-beta.43

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
@@ -67026,20 +67026,22 @@ ${codeText}
67026
67026
  (_a = block.querySelector("[data-type=block-tools] .block-placeholder-container")) == null ? void 0 : _a.remove();
67027
67027
  }
67028
67028
  function applyPlaceholderToBlock(editor, block, placeholder2) {
67029
- var _a;
67030
67029
  removePlaceholderFromBlock(editor, block);
67031
67030
  if (!isEmptyTextBlockWithoutCompositionText(editor, block)) {
67032
67031
  return;
67033
67032
  }
67034
- const contentElem = getBlockContent(block);
67035
- if (typeof placeholder2 === "string") {
67036
- contentElem.setAttribute("data-content-placeholder", placeholder2);
67037
- } else {
67038
- const tools = getBlockTools(block);
67039
- const placeholderContainer = (_a = tools.querySelector(".block-placeholder-container")) != null ? _a : createElement("div", ["block-placeholder-container"], tools);
67040
- placeholderContainer.innerHTML = "";
67041
- placeholderContainer.appendChild(placeholder2);
67042
- }
67033
+ setTimeout(() => {
67034
+ var _a;
67035
+ const contentElem = getBlockContent(block);
67036
+ if (typeof placeholder2 === "string") {
67037
+ contentElem.setAttribute("data-content-placeholder", placeholder2);
67038
+ } else {
67039
+ const tools = getBlockTools(block);
67040
+ const placeholderContainer = (_a = tools.querySelector(".block-placeholder-container")) != null ? _a : createElement("div", ["block-placeholder-container"], tools);
67041
+ placeholderContainer.innerHTML = "";
67042
+ placeholderContainer.appendChild(placeholder2);
67043
+ }
67044
+ });
67043
67045
  }
67044
67046
  function getTextBlockPlaceholder(block) {
67045
67047
  const heading = block.getAttribute("data-style-heading");
@@ -67152,7 +67154,6 @@ ${codeText}
67152
67154
  });
67153
67155
  }
67154
67156
  function applyPlaceholder(editor, options) {
67155
- var _a;
67156
67157
  removeAllPlaceholders(editor);
67157
67158
  if (!editor.selection.range.isCollapsed()) {
67158
67159
  return;
@@ -67160,12 +67161,15 @@ ${codeText}
67160
67161
  if (editor.readonly) {
67161
67162
  return;
67162
67163
  }
67163
- if (!options.hideTitle) {
67164
- applyTitlePlaceholder(editor, options);
67165
- }
67166
- if (!((_a = options.applyContentPlaceholder) == null ? void 0 : _a.call(options, editor))) {
67167
- applyContentPlaceholder(editor, options);
67168
- }
67164
+ setTimeout(() => {
67165
+ var _a;
67166
+ if (!options.hideTitle) {
67167
+ applyTitlePlaceholder(editor, options);
67168
+ }
67169
+ if (!((_a = options.applyContentPlaceholder) == null ? void 0 : _a.call(options, editor))) {
67170
+ applyContentPlaceholder(editor, options);
67171
+ }
67172
+ });
67169
67173
  }
67170
67174
  const placeholder = "";
67171
67175
  function hasAttributes(text2) {
@@ -94618,6 +94622,9 @@ ${JSON.stringify(error2, null, 2)}`);
94618
94622
  });
94619
94623
  this.observer.observe(resizer);
94620
94624
  editor.addCustom("main-toolbar-more-item", () => this);
94625
+ setTimeout(() => {
94626
+ this.updateItems();
94627
+ }, 300);
94621
94628
  }
94622
94629
  });
94623
94630
  }
@@ -95574,7 +95581,7 @@ ${JSON.stringify(error2, null, 2)}`);
95574
95581
  }
95575
95582
  }
95576
95583
  });
95577
- editor.version = "2.9.8-beta.42";
95584
+ editor.version = "2.9.8-beta.43";
95578
95585
  return editor;
95579
95586
  }
95580
95587
  function isDoc(doc2) {
@@ -95706,7 +95713,7 @@ ${JSON.stringify(error2, null, 2)}`);
95706
95713
  OnesEditorDropTarget.register(editor);
95707
95714
  OnesEditorTocProvider.register(editor);
95708
95715
  OnesEditorExclusiveBlock.register(editor);
95709
- editor.version = "2.9.8-beta.42";
95716
+ editor.version = "2.9.8-beta.43";
95710
95717
  return editor;
95711
95718
  }
95712
95719
  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.42",
3
+ "version": "2.9.8-beta.43",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {