@ylzcc/editor 0.7.8 → 0.7.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/editor.es.js +5 -5
- package/dist/editor.umd.js +2 -2
- package/package.json +1 -1
package/dist/editor.es.js
CHANGED
|
@@ -32891,9 +32891,9 @@ const Menu = (Ff) => {
|
|
|
32891
32891
|
}, ame = () => {
|
|
32892
32892
|
const Eme = document.createElement("input");
|
|
32893
32893
|
Eme.type = "file", Eme.accept = "image/*", Eme.addEventListener("change", (gme) => {
|
|
32894
|
-
const yme = gme.target.files[0], Tme = yme.size, Ame =
|
|
32894
|
+
const yme = gme.target.files[0], Tme = yme.size, Ame = 10 * 1024 * 1024;
|
|
32895
32895
|
if (Tme > Ame)
|
|
32896
|
-
message.warning("图片大小不能超过
|
|
32896
|
+
message.warning("图片大小不能超过10Mb!");
|
|
32897
32897
|
else {
|
|
32898
32898
|
const Dme = new FormData();
|
|
32899
32899
|
Dme.append("file", yme), upload({ url: kh == null ? void 0 : kh.apiUrl, file: Dme, ext: yme == null ? void 0 : yme.name }).then((wme) => {
|
|
@@ -33560,9 +33560,9 @@ const SlashMenu = (Ff) => {
|
|
|
33560
33560
|
}, cme = () => {
|
|
33561
33561
|
const yme = document.createElement("input");
|
|
33562
33562
|
yme.type = "file", yme.accept = "image/*", yme.addEventListener("change", (Tme) => {
|
|
33563
|
-
const Ame = Tme.target.files[0], Dme = Ame.size, wme =
|
|
33563
|
+
const Ame = Tme.target.files[0], Dme = Ame.size, wme = 10 * 1024 * 1024;
|
|
33564
33564
|
if (Dme > wme)
|
|
33565
|
-
message.warning("图片大小不能超过
|
|
33565
|
+
message.warning("图片大小不能超过10Mb!");
|
|
33566
33566
|
else {
|
|
33567
33567
|
const Ume = new FormData();
|
|
33568
33568
|
Ume.append("file", Ame), upload({ url: kh == null ? void 0 : kh.apiUrl, file: Ume, ext: Ame == null ? void 0 : Ame.name }).then((Lme) => {
|
|
@@ -127200,7 +127200,7 @@ const HighlightJS = /* @__PURE__ */ getDefaultExportFromCjs(lib), CodeHighlight
|
|
|
127200
127200
|
] }) })
|
|
127201
127201
|
] }),
|
|
127202
127202
|
$P === "question" ? /* @__PURE__ */ jsxRuntimeExports.jsx(Question, { data: sme, report: pme, submitActivity: hme }) : $P === "experiment" ? /* @__PURE__ */ jsxRuntimeExports.jsx(Demo, { data: sme, report: pme, exec: mme, submitActivity: hme }) : $P === "validate" ? /* @__PURE__ */ jsxRuntimeExports.jsx(CodeTest, { data: sme, report: pme, submitActivity: hme, codePlayerConnect: ome }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {})
|
|
127203
|
-
] });
|
|
127203
|
+
] }, zP);
|
|
127204
127204
|
}, backtickInputRegex = /^`````([a-z]+)?[\s\n]$/, Active = Node$1.create({
|
|
127205
127205
|
name: "active",
|
|
127206
127206
|
content: "text*",
|