@ones-editor/editor 2.1.7-beta.21 → 2.1.7-beta.22

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
@@ -63459,6 +63459,9 @@ ${codeText}
63459
63459
  if (!editor.selection.range.isCollapsed()) {
63460
63460
  return;
63461
63461
  }
63462
+ if (editor.readonly) {
63463
+ return;
63464
+ }
63462
63465
  if (!options.hideTitle) {
63463
63466
  applyTitlePlaceholder(editor, options);
63464
63467
  }
@@ -87856,12 +87859,13 @@ ${data2.flowchartText}
87856
87859
  editor.input.addHandler(new MarkdownInputHandler());
87857
87860
  editor.input.addHandler(new ConvertEmptyMathjaxBoxInputHandler());
87858
87861
  editor.input.addHandler(new EmptyImageConverterInputHandler());
87862
+ const contentPlaceholder = options.blockMenuButton !== false ? i18n$1.t("placeholder.common.content") : i18n$1.t("placeholder.common.contentInContainer");
87859
87863
  editor.input.addHandler(
87860
87864
  new EnforceWithDocumentTitleHandler(editor, {
87861
87865
  hideTitle: options.hideTitle,
87862
87866
  headingLevel: 1,
87863
87867
  titlePlaceholder: i18n$1.t("placeholder.common.title"),
87864
- contentPlaceholder: clientType.isMobile ? "" : i18n$1.t("placeholder.common.content"),
87868
+ contentPlaceholder: clientType.isMobile ? "" : contentPlaceholder,
87865
87869
  readonlyTitlePlaceholder: i18n$1.t("placeholder.common.readonlyTitle"),
87866
87870
  addPlaceholderToAllCurrentEmptyBlock: true,
87867
87871
  applyContentPlaceholder: (_b = options.placeholder) == null ? void 0 : _b.applyContentPlaceholder
@@ -87969,7 +87973,7 @@ ${data2.flowchartText}
87969
87973
  }
87970
87974
  }
87971
87975
  });
87972
- editor.version = "2.1.7-beta.21";
87976
+ editor.version = "2.1.7-beta.22";
87973
87977
  if (Logger$2.level === LogLevel.DEBUG) {
87974
87978
  window.setReauthFail = (fail) => {
87975
87979
  window.isReauthError = fail;
@@ -88020,12 +88024,13 @@ ${data2.flowchartText}
88020
88024
  addClass(editor.rootElement, "no-block-menu");
88021
88025
  }
88022
88026
  editor.input.addHandler(new MarkdownInputHandler());
88027
+ const contentPlaceholder = options.blockMenuButton !== false ? i18n$1.t("placeholder.common.content") : i18n$1.t("placeholder.common.contentInContainer");
88023
88028
  editor.input.addHandler(
88024
88029
  new EnforceWithDocumentTitleHandler(editor, {
88025
88030
  hideTitle: options.hideTitle,
88026
88031
  headingLevel: 1,
88027
88032
  titlePlaceholder: i18n$1.t("placeholder.common.title"),
88028
- contentPlaceholder: clientType.isMobile ? "" : i18n$1.t("placeholder.common.content"),
88033
+ contentPlaceholder: clientType.isMobile ? "" : contentPlaceholder,
88029
88034
  readonlyTitlePlaceholder: i18n$1.t("placeholder.local.readonlyTitle"),
88030
88035
  addPlaceholderToAllCurrentEmptyBlock: true
88031
88036
  })
@@ -88088,7 +88093,7 @@ ${data2.flowchartText}
88088
88093
  }
88089
88094
  }
88090
88095
  OnesEditorToolbar.register(editor);
88091
- editor.version = "2.1.7-beta.21";
88096
+ editor.version = "2.1.7-beta.22";
88092
88097
  return editor;
88093
88098
  }
88094
88099
  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.1.7-beta.21",
3
+ "version": "2.1.7-beta.22",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",