@ones-editor/editor 0.0.7-beta.31 → 0.0.7-beta.32

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
@@ -48812,8 +48812,8 @@ ${codeText}
48812
48812
  }
48813
48813
  function applyPlaceholderToBlock(editor, block, placeholder2) {
48814
48814
  var _a;
48815
+ removePlaceholderFromBlock(editor, block);
48815
48816
  if (!isEmptyTextBlockWithoutCompositionText(editor, block)) {
48816
- removePlaceholderFromBlock(editor, block);
48817
48817
  return;
48818
48818
  }
48819
48819
  const contentElem = getBlockContent(block);
@@ -51510,8 +51510,7 @@ ${codeText}
51510
51510
  });
51511
51511
  });
51512
51512
  __publicField(this, "updatePlaceholder", (block) => {
51513
- const contentElem = getBlockContent(block);
51514
- contentElem.setAttribute("data-content-placeholder", i18n$1.t("blockMenu.button.searchPlaceholder"));
51513
+ applyPlaceholderToBlock(this.editor, block, i18n$1.t("blockMenu.button.searchPlaceholder"));
51515
51514
  });
51516
51515
  __publicField(this, "handleChanged", () => {
51517
51516
  const block = this.emptyBlockMenu.currentBlock;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "0.0.7-beta.31",
3
+ "version": "0.0.7-beta.32",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",