@ones-editor/editor 1.1.10-beta.12 → 1.1.10-beta.13
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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +9 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8012,17 +8012,12 @@ var __publicField = (obj, key, value) => {
|
|
|
8012
8012
|
return false;
|
|
8013
8013
|
}
|
|
8014
8014
|
async function setClipboardData(items) {
|
|
8015
|
-
const clipboardData = window.clipboardData;
|
|
8016
|
-
if (clipboardData) {
|
|
8017
|
-
clipboardData.setData("Text", "text text text");
|
|
8018
|
-
return true;
|
|
8019
|
-
}
|
|
8020
8015
|
try {
|
|
8021
|
-
const
|
|
8016
|
+
const clipboardData = {};
|
|
8022
8017
|
items.forEach((item) => {
|
|
8023
|
-
|
|
8018
|
+
clipboardData[item.type] = item.data;
|
|
8024
8019
|
});
|
|
8025
|
-
const clipboardItems = new ClipboardItem(
|
|
8020
|
+
const clipboardItems = new ClipboardItem(clipboardData);
|
|
8026
8021
|
await navigator.clipboard.write([clipboardItems]);
|
|
8027
8022
|
return true;
|
|
8028
8023
|
} catch (err) {
|
|
@@ -41413,7 +41408,9 @@ ${codeText}
|
|
|
41413
41408
|
}
|
|
41414
41409
|
const logger$1S = getLogger("column-width");
|
|
41415
41410
|
function setColumnWidth(table, colIndex, width) {
|
|
41416
|
-
getTableCol(table, colIndex)
|
|
41411
|
+
const col = getTableCol(table, colIndex);
|
|
41412
|
+
col.style.width = `${width}px`;
|
|
41413
|
+
col.style.minWidth = `${width}px`;
|
|
41417
41414
|
}
|
|
41418
41415
|
function getTableColumnWidthsFromDom(table) {
|
|
41419
41416
|
const tableCols = Array.from(table.querySelector("colgroup").children);
|
|
@@ -48248,6 +48245,7 @@ $$${mathData.mathjaxText}$$
|
|
|
48248
48245
|
const col = createElement("col", [], colGroup);
|
|
48249
48246
|
if (colsWidth[i]) {
|
|
48250
48247
|
col.style.width = `${colsWidth[i]}px`;
|
|
48248
|
+
col.style.minWidth = `${colsWidth[i]}px`;
|
|
48251
48249
|
}
|
|
48252
48250
|
}
|
|
48253
48251
|
const tableBody = createElement("tbody", [], table);
|
|
@@ -75713,7 +75711,7 @@ ${data.flowchartText}
|
|
|
75713
75711
|
}
|
|
75714
75712
|
}
|
|
75715
75713
|
});
|
|
75716
|
-
editor.version = "1.1.10-beta.
|
|
75714
|
+
editor.version = "1.1.10-beta.13";
|
|
75717
75715
|
return editor;
|
|
75718
75716
|
}
|
|
75719
75717
|
function isDoc(doc2) {
|
|
@@ -75786,7 +75784,7 @@ ${data.flowchartText}
|
|
|
75786
75784
|
});
|
|
75787
75785
|
editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
|
|
75788
75786
|
OnesEditorToolbar.register(editor);
|
|
75789
|
-
editor.version = "1.1.10-beta.
|
|
75787
|
+
editor.version = "1.1.10-beta.13";
|
|
75790
75788
|
return editor;
|
|
75791
75789
|
}
|
|
75792
75790
|
async function showDocVersions(editor, options, serverUrl) {
|