mce 0.15.10 → 0.15.11
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 +9 -3
- package/dist/mixins/4.4.doc.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2922,9 +2922,15 @@ const _4_4_doc = defineMixin((editor, options) => {
|
|
|
2922
2922
|
return _doc;
|
|
2923
2923
|
};
|
|
2924
2924
|
const loadDoc = async (source) => {
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2925
|
+
emit("docLoading", source);
|
|
2926
|
+
try {
|
|
2927
|
+
const _doc = await setDoc(await load(source));
|
|
2928
|
+
emit("docLoaded", source, _doc);
|
|
2929
|
+
return _doc;
|
|
2930
|
+
} catch (err) {
|
|
2931
|
+
emit("docLoaded", source, err);
|
|
2932
|
+
throw err;
|
|
2933
|
+
}
|
|
2928
2934
|
};
|
|
2929
2935
|
Object.assign(editor, {
|
|
2930
2936
|
getDoc,
|
package/dist/mixins/4.4.doc.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.11",
|
|
5
5
|
"description": "The headless canvas editor framework. only the ESM.",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"diff": "^8.0.2",
|
|
62
62
|
"file-saver": "^2.0.5",
|
|
63
63
|
"lodash-es": "^4.17.22",
|
|
64
|
-
"modern-canvas": "^0.14.
|
|
64
|
+
"modern-canvas": "^0.14.25",
|
|
65
65
|
"modern-font": "^0.4.4",
|
|
66
66
|
"modern-idoc": "^0.10.8",
|
|
67
67
|
"modern-text": "^1.10.7",
|