From e78be296c60f4aa528d329eac56c197043775759 Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Tue, 31 Oct 2023 20:30:20 +0100 Subject: [PATCH] Fix build --- nextjs/package.json | 2 +- nextjs/src/QuillEditor.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nextjs/package.json b/nextjs/package.json index fa7af30..96860b0 100644 --- a/nextjs/package.json +++ b/nextjs/package.json @@ -7,7 +7,7 @@ "katex": "0.16.2", "@edtr-io/mathquill": "0.11.0", "mathquill4quill": "file:..", - "next": "13.5.0", + "next": "13.5.6", "react": "18.2.0", "react-dom": "18.2.0", "react-quill": "2.0.0" diff --git a/nextjs/src/QuillEditor.jsx b/nextjs/src/QuillEditor.jsx index f9a06d8..85a32e0 100644 --- a/nextjs/src/QuillEditor.jsx +++ b/nextjs/src/QuillEditor.jsx @@ -6,7 +6,7 @@ import ReactQuill, { Quill } from "react-quill"; if (typeof window !== "undefined") { window.katex = katex; window.jQuery = window.$ = $; - const mathquill4quill = require("mathquill4quill"); + window.mathquill4quill = require("mathquill4quill"); require("@edtr-io/mathquill/build/mathquill.js"); } @@ -26,7 +26,7 @@ class QuillEditor extends React.Component { } attachQuillRefs() { - const enableMathQuillFormulaAuthoring = mathquill4quill({ Quill, katex }); + const enableMathQuillFormulaAuthoring = window.mathquill4quill({ Quill, katex }); enableMathQuillFormulaAuthoring( this.reactQuill.current.editor, this.props.options