@jvs-milkdown/crepe 1.2.41 → 1.2.42

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/lib/cjs/index.js CHANGED
@@ -5778,24 +5778,20 @@ const Toolbar = vue.defineComponent({
5778
5778
  vue.watch(
5779
5779
  () => formatPainterState.value,
5780
5780
  (newVal) => {
5781
- console.log("[FormatPainter] state changed:", newVal);
5782
5781
  if (newVal) {
5783
5782
  let cursorStyleEl = cursorStyleEls.get(ctx);
5784
- console.log("[FormatPainter] existing style tag:", cursorStyleEl);
5785
5783
  if (!cursorStyleEl) {
5786
5784
  cursorStyleEl = document.createElement("style");
5787
5785
  let svgWithXmlns = formatPainterIcon.includes("xmlns=") ? formatPainterIcon : formatPainterIcon.replace("<svg ", '<svg xmlns="http://www.w3.org/2000/svg" ');
5788
5786
  svgWithXmlns = svgWithXmlns.replace(/\s+/g, " ").trim();
5789
5787
  const cleanSvg = svgWithXmlns.replace(/currentColor/g, "#363B4C");
5790
5788
  const base64Svg = window.btoa(cleanSvg);
5791
- cursorStyleEl.innerHTML = `body, body *, .ProseMirror, .ProseMirror * { cursor: url("data:image/svg+xml;base64,${base64Svg}") 0 0, auto !important; }`;
5789
+ cursorStyleEl.innerHTML = `.ProseMirror, .ProseMirror * { cursor: url("data:image/svg+xml;base64,${base64Svg}") 0 0, auto !important; }`;
5792
5790
  document.head.appendChild(cursorStyleEl);
5793
5791
  cursorStyleEls.set(ctx, cursorStyleEl);
5794
- console.log("[FormatPainter] Style tag appended to head:", cursorStyleEl.outerHTML);
5795
5792
  }
5796
5793
  } else {
5797
5794
  const cursorStyleEl = cursorStyleEls.get(ctx);
5798
- console.log("[FormatPainter] removing style tag:", cursorStyleEl);
5799
5795
  if (cursorStyleEl) {
5800
5796
  cursorStyleEl.remove();
5801
5797
  cursorStyleEls.delete(ctx);