Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Oct 31, 2023
1 parent d7bd62d commit e78be29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions nextjs/src/QuillEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand All @@ -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
Expand Down

0 comments on commit e78be29

Please sign in to comment.