@ylzcc/editor 0.7.1 → 0.7.2

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 CHANGED
@@ -80677,7 +80677,7 @@ const EditorComponent = (Ff) => {
80677
80677
  /* @__PURE__ */ jsxRuntimeExports.jsx("img", { height: 12, src: error, alt: "" }),
80678
80678
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { marginLeft: "3px" }, children: "回答错误,请重新作答!" })
80679
80679
  ] }) : /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {}) }),
80680
- (eme == null ? void 0 : eme.length) && nme === "error" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "question-auxiliary", children: [
80680
+ (eme == null ? void 0 : eme.length) > 0 && nme === "error" && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "question-auxiliary", children: [
80681
80681
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "question-auxiliary-title", children: [
80682
80682
  /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: Icon_Warning, alt: "" }),
80683
80683
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "提示" }),
@@ -127360,7 +127360,7 @@ const HighlightJS = /* @__PURE__ */ getDefaultExportFromCjs(lib), CodeHighlight
127360
127360
  ] });
127361
127361
  }, backtickInputRegex = /^`````([a-z]+)?[\s\n]$/, Active = Node$1.create({
127362
127362
  name: "active",
127363
- content: "",
127363
+ content: "text*",
127364
127364
  marks: "",
127365
127365
  group: "block",
127366
127366
  atom: !0,
@@ -127715,7 +127715,7 @@ let Editor = (Ff, kh) => {
127715
127715
  jme.insert(t_e.to + s_e, v_e), m_e.dispatch(jme);
127716
127716
  };
127717
127717
  console.log("🚀", u_e);
127718
- const f_e = Ame == null ? void 0 : Ame.view.state.doc.nodeAt((u_e == null ? void 0 : u_e.pos) || 1);
127718
+ const f_e = Ame == null ? void 0 : Ame.view.state.doc.nodeAt(((u_e == null ? void 0 : u_e.pos) || 0) + 1);
127719
127719
  E_e() && (f_e || T_e(Ame, 1));
127720
127720
  }
127721
127721
  },