@mce/bigesj 0.15.22 → 0.15.24
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 +11 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1756,6 +1756,10 @@ function bidTidLoader(editor, api) {
|
|
|
1756
1756
|
let doc2;
|
|
1757
1757
|
if (version > 1) {
|
|
1758
1758
|
doc2 = content;
|
|
1759
|
+
if (!doc2.meta) {
|
|
1760
|
+
doc2.meta = {};
|
|
1761
|
+
}
|
|
1762
|
+
doc2.meta.version = version;
|
|
1759
1763
|
doc2.meta.raw = raw;
|
|
1760
1764
|
} else {
|
|
1761
1765
|
if (included !== void 0) {
|
|
@@ -1768,7 +1772,9 @@ function bidTidLoader(editor, api) {
|
|
|
1768
1772
|
})
|
|
1769
1773
|
);
|
|
1770
1774
|
const doc = { ...docs[0], id: text, children: [] };
|
|
1771
|
-
doc.meta
|
|
1775
|
+
if (!doc.meta) {
|
|
1776
|
+
doc.meta = {};
|
|
1777
|
+
}
|
|
1772
1778
|
doc.meta.maxTime = maxTime;
|
|
1773
1779
|
doc.meta.inEditorIs = "Doc";
|
|
1774
1780
|
let left = 0;
|
|
@@ -1776,8 +1782,10 @@ function bidTidLoader(editor, api) {
|
|
|
1776
1782
|
let width = 0;
|
|
1777
1783
|
_doc.children?.forEach((element) => {
|
|
1778
1784
|
if (element.style) {
|
|
1779
|
-
|
|
1780
|
-
|
|
1785
|
+
if (Number(_doc.meta?.version ?? 0) <= 1) {
|
|
1786
|
+
element.style.left = left;
|
|
1787
|
+
width = Math.max(width, Number(element.style.width));
|
|
1788
|
+
}
|
|
1781
1789
|
doc.children.push(element);
|
|
1782
1790
|
}
|
|
1783
1791
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mce/bigesj",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.24",
|
|
5
5
|
"description": "Plugin for mce",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"modern-openxml": "^1.10.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"mce": "0.15.
|
|
52
|
+
"mce": "0.15.24"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"mce": "^0"
|