@ylzcc/editor 0.7.2 → 0.7.4
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 +4 -4
- package/dist/editor.umd.js +3 -3
- package/package.json +1 -1
package/dist/editor.es.js
CHANGED
|
@@ -32859,7 +32859,7 @@ const upload = async (Ff) => {
|
|
|
32859
32859
|
x_.type = "code", x_.lang = (mme = Ff == null ? void 0 : Ff.attrs) == null ? void 0 : mme.language, x_.value = (Eme = Ff == null ? void 0 : Ff.content) != null && Eme.length ? (_me = Ff == null ? void 0 : Ff.content[0]) == null ? void 0 : _me.text : "", (yme = Ff == null ? void 0 : Ff.attrs) != null && yme.exec && (x_.props = "exec");
|
|
32860
32860
|
break;
|
|
32861
32861
|
case "active":
|
|
32862
|
-
x_.type = "code", x_.lang = (Tme = Ff == null ? void 0 : Ff.attrs) == null ? void 0 : Tme.language, x_.value = (Ame = Ff == null ? void 0 : Ff.attrs) == null ? void 0 : Ame.id, x_.props = "active";
|
|
32862
|
+
x_.type = "code", x_.lang = (Tme = Ff == null ? void 0 : Ff.attrs) == null ? void 0 : Tme.language, x_.value = JSON.stringify({ id: (Ame = Ff == null ? void 0 : Ff.attrs) == null ? void 0 : Ame.id }), x_.props = "active";
|
|
32863
32863
|
break;
|
|
32864
32864
|
case "pdf":
|
|
32865
32865
|
x_.type = "paragraph", x_.children = [
|
|
@@ -80663,7 +80663,7 @@ const EditorComponent = (Ff) => {
|
|
|
80663
80663
|
}, gme = () => {
|
|
80664
80664
|
x_(), rme(B_ === "radio" ? lme === tme ? "success" : "error" : dme.join(",") === tme ? "success" : "error"), sme(!0);
|
|
80665
80665
|
};
|
|
80666
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "question", children: [
|
|
80666
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "question", contentEditable: !1, children: [
|
|
80667
80667
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "question-title", children: [
|
|
80668
80668
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", children: "选择题" }),
|
|
80669
80669
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: B_ === "radio" ? "单选" : "多选" })
|
|
@@ -127263,7 +127263,7 @@ const HighlightJS = /* @__PURE__ */ getDefaultExportFromCjs(lib), CodeHighlight
|
|
|
127263
127263
|
await $_.send(ime, kh);
|
|
127264
127264
|
}
|
|
127265
127265
|
};
|
|
127266
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "demo", children: [
|
|
127266
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "demo", contentEditable: !1, children: [
|
|
127267
127267
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", children: "示例演示" }),
|
|
127268
127268
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "demo-content", children: /* @__PURE__ */ jsxRuntimeExports.jsx(EditorComponent, { value: $P }) }),
|
|
127269
127269
|
nme && /* @__PURE__ */ jsxRuntimeExports.jsx(CodeHighlight, { value: zP, lang: language[eme] ?? eme }),
|
|
@@ -127282,7 +127282,7 @@ const HighlightJS = /* @__PURE__ */ getDefaultExportFromCjs(lib), CodeHighlight
|
|
|
127282
127282
|
console.log(sme);
|
|
127283
127283
|
}));
|
|
127284
127284
|
};
|
|
127285
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "codetest", children: [
|
|
127285
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "codetest", contentEditable: !1, children: [
|
|
127286
127286
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "title", children: "编码测验" }),
|
|
127287
127287
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "codetest-topic", children: zP }),
|
|
127288
127288
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "codetest-content", children: /* @__PURE__ */ jsxRuntimeExports.jsx(EditorComponent, { value: $_ }) }),
|