@ones-editor/editor 2.1.1-beta.80 → 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.
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
|
-
|
|
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
|
}
|
|
@@ -50537,7 +50549,9 @@ ${codeText}
|
|
|
50537
50549
|
return;
|
|
50538
50550
|
}
|
|
50539
50551
|
if (!this.editor.isWritable()) {
|
|
50540
|
-
this.
|
|
50552
|
+
if (this.toolbarType === "text") {
|
|
50553
|
+
this.toolbar.close("selectionChange");
|
|
50554
|
+
}
|
|
50541
50555
|
this.oldRange = null;
|
|
50542
50556
|
return;
|
|
50543
50557
|
}
|
|
@@ -50693,10 +50707,6 @@ ${codeText}
|
|
|
50693
50707
|
return;
|
|
50694
50708
|
}
|
|
50695
50709
|
this.toolbarType = "text";
|
|
50696
|
-
if (allCommands.length === 0) {
|
|
50697
|
-
this.toolbar.close("selectionChange");
|
|
50698
|
-
return;
|
|
50699
|
-
}
|
|
50700
50710
|
this.toolbar.updateItems(allCommands);
|
|
50701
50711
|
const lastBlock2 = selectedBlocks[selectedBlocks.length - 1];
|
|
50702
50712
|
let reverseToolbar = !this.editor.selection.range.isReverse() && lastBlock2 !== firstBlock;
|
|
@@ -86768,7 +86778,7 @@ ${data2.flowchartText}
|
|
|
86768
86778
|
}
|
|
86769
86779
|
}
|
|
86770
86780
|
});
|
|
86771
|
-
editor.version = "2.1.1-beta.
|
|
86781
|
+
editor.version = "2.1.1-beta.82";
|
|
86772
86782
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86773
86783
|
window.setReauthFail = (fail) => {
|
|
86774
86784
|
window.isReauthError = fail;
|
|
@@ -86869,7 +86879,7 @@ ${data2.flowchartText}
|
|
|
86869
86879
|
});
|
|
86870
86880
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86871
86881
|
OnesEditorToolbar.register(editor);
|
|
86872
|
-
editor.version = "2.1.1-beta.
|
|
86882
|
+
editor.version = "2.1.1-beta.82";
|
|
86873
86883
|
return editor;
|
|
86874
86884
|
}
|
|
86875
86885
|
async function showDocVersions(editor, options, serverUrl) {
|