@ones-editor/editor 2.1.1-beta.81 → 2.1.1-beta.82

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.
@@ -10,6 +10,7 @@ export type EditorInputOptions = {
10
10
  maxLength?: number;
11
11
  prefix?: Element;
12
12
  suffixClose?: boolean;
13
+ mode?: 'textarea' | 'input';
13
14
  };
14
15
  export declare class EditorInput {
15
16
  private parent;
package/dist/index.js CHANGED
@@ -1608,6 +1608,9 @@ div.tippy-box[data-theme=menu] .tippy-content .editor-command-bar.menu .menu-ite
1608
1608
  .editor-input-wrap .editor-input-container .editor-input.has-prefix {
1609
1609
  padding-left: 30px;
1610
1610
  }
1611
+ .editor-input-wrap .editor-input-container textarea {
1612
+ resize: none;
1613
+ }
1611
1614
  .editor-input-wrap .editor-input-container .editor-input-addon, .editor-input-wrap .editor-input-container .editor-input-prefix, .editor-input-wrap .editor-input-container .editor-input-suffix {
1612
1615
  height: 100%;
1613
1616
  position: absolute;
@@ -2622,6 +2625,8 @@ div.editor-root:not(.readonly) div.editor-content div[data-type=editor-container
2622
2625
  [data-command-bar-id=mobile-bottom-menu] .link-popup .editor-command-bar .command-item[data-id=link-popup] .link-form-content .editor-input-wrap .editor-input-container .editor-input {
2623
2626
  line-height: 1.4;
2624
2627
  padding: 11px 10px;
2628
+ height: 44px;
2629
+ white-space: nowrap;
2625
2630
  }div.editor-root div.editor-content div[data-type=editor-container] div[data-type=editor-block] div[data-type=block-content] > span.math-box {
2626
2631
  display: inline-flex;
2627
2632
  vertical-align: middle;
@@ -41088,7 +41093,12 @@ ${codeText}
41088
41093
  }
41089
41094
  }
41090
41095
  const inputContainer = createElement("div", ["editor-input-container"], container);
41091
- const input2 = createElement("input", ["editor-input"], null);
41096
+ let input2;
41097
+ if ((options == null ? void 0 : options.mode) === "textarea") {
41098
+ input2 = createElement("textarea", ["editor-input"], null);
41099
+ } else {
41100
+ input2 = createElement("input", ["editor-input"], null);
41101
+ }
41092
41102
  const prefix = options.prefix;
41093
41103
  if (prefix) {
41094
41104
  const suffixContainer = createElement("div", ["editor-input-prefix"], inputContainer);
@@ -49888,7 +49898,8 @@ ${codeText}
49888
49898
  defaultValue: linkText,
49889
49899
  suffixClose: clientType.isMobile,
49890
49900
  onChange: this.onChange,
49891
- onKeyDown: this.handleTextKeyboard
49901
+ onKeyDown: this.handleTextKeyboard,
49902
+ mode: clientType.isMobile ? "textarea" : "input"
49892
49903
  });
49893
49904
  this.form.linkUrl = createInput(content, {
49894
49905
  className: "link-popup-gap",
@@ -49898,7 +49909,8 @@ ${codeText}
49898
49909
  defaultValue: linkUrl,
49899
49910
  suffixClose: clientType.isMobile,
49900
49911
  onChange: this.onChange,
49901
- onKeyDown: this.handleUrlKeyboard
49912
+ onKeyDown: this.handleUrlKeyboard,
49913
+ mode: clientType.isMobile ? "textarea" : "input"
49902
49914
  });
49903
49915
  return content;
49904
49916
  }
@@ -86766,7 +86778,7 @@ ${data2.flowchartText}
86766
86778
  }
86767
86779
  }
86768
86780
  });
86769
- editor.version = "2.1.1-beta.81";
86781
+ editor.version = "2.1.1-beta.82";
86770
86782
  if (Logger$2.level === LogLevel.DEBUG) {
86771
86783
  window.setReauthFail = (fail) => {
86772
86784
  window.isReauthError = fail;
@@ -86867,7 +86879,7 @@ ${data2.flowchartText}
86867
86879
  });
86868
86880
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
86869
86881
  OnesEditorToolbar.register(editor);
86870
- editor.version = "2.1.1-beta.81";
86882
+ editor.version = "2.1.1-beta.82";
86871
86883
  return editor;
86872
86884
  }
86873
86885
  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.1-beta.81",
3
+ "version": "2.1.1-beta.82",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",