@ones-editor/editor 2.1.1-beta.56 → 2.1.1-beta.58
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
|
@@ -75060,7 +75060,7 @@ ${content}
|
|
|
75060
75060
|
get commands() {
|
|
75061
75061
|
let items = this._commands.slice();
|
|
75062
75062
|
const needRemoveCommandIds = /* @__PURE__ */ new Set();
|
|
75063
|
-
if (!clientType.isMobile) {
|
|
75063
|
+
if (!clientType.isMobile || this.editor.readonly) {
|
|
75064
75064
|
needRemoveCommandIds.add("preview");
|
|
75065
75065
|
}
|
|
75066
75066
|
if (this.editor.readonly || clientType.isMobile) {
|
|
@@ -75158,7 +75158,7 @@ ${content}
|
|
|
75158
75158
|
link2.setAttribute("data-file-src", fileData.src);
|
|
75159
75159
|
}
|
|
75160
75160
|
function handleClickBox$1(editor, box, event) {
|
|
75161
|
-
if (clientType.isMobile) {
|
|
75161
|
+
if (clientType.isMobile && !editor.readonly) {
|
|
75162
75162
|
return;
|
|
75163
75163
|
}
|
|
75164
75164
|
const options = editor.options.componentsOptions.file;
|
|
@@ -86560,7 +86560,7 @@ ${data2.flowchartText}
|
|
|
86560
86560
|
}
|
|
86561
86561
|
}
|
|
86562
86562
|
});
|
|
86563
|
-
editor.version = "2.1.1-beta.
|
|
86563
|
+
editor.version = "2.1.1-beta.58";
|
|
86564
86564
|
if (Logger$2.level === LogLevel.DEBUG) {
|
|
86565
86565
|
window.setReauthFail = (fail) => {
|
|
86566
86566
|
window.isReauthError = fail;
|
|
@@ -86658,7 +86658,7 @@ ${data2.flowchartText}
|
|
|
86658
86658
|
});
|
|
86659
86659
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
86660
86660
|
OnesEditorToolbar.register(editor);
|
|
86661
|
-
editor.version = "2.1.1-beta.
|
|
86661
|
+
editor.version = "2.1.1-beta.58";
|
|
86662
86662
|
return editor;
|
|
86663
86663
|
}
|
|
86664
86664
|
async function showDocVersions(editor, options, serverUrl) {
|