React Quill with math formula
npm install quill-editor-math> Rich text editor with react quill, mathquill4quill, katex, and image resizer. you can use formula with this. 👌🏻
 
``bash`
npm install --save quill-editor-math
or
``
yarn add quill-editor-math
`tsx
import React, { Component } from 'react'
import Editor from 'quill-editor-math'
import 'quill-editor-math/dist/index.css'
class Example extends Component {
render() {
return
}
}
`
`tsx
import dynamic from 'next/dynamic';
import 'quill-editor-math/dist/index.css';
const Editor = dynamic(() => import('quill-editor-math')
.then((mod) => mod.default), {
ssr: false,
loading: () =>
Editor loading ...
,export default function Example() {
return (
);
}
`
#### If you want to reset field of this text editor, you can try this 👇
`tsx
import { useState } from 'react';
import dynamic from 'next/dynamic';
import 'quill-editor-math/dist/index.css';
const Editor = dynamic(() => import('quill-editor-math')
.then((mod) => mod.default), {
ssr: false,
loading: () =>
Editor loading ...
,export default function Example() {
const [resetField, setResetField] = useState(false);
return (
<>
>
);
}
``
MIT © vieyama