Skip to content

Instantly share code, notes, and snippets.

@edtsech
Last active November 9, 2020 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edtsech/0189cecb493a82e02758b60ceea2dfca to your computer and use it in GitHub Desktop.
Save edtsech/0189cecb493a82e02758b60ceea2dfca to your computer and use it in GitHub Desktop.
import React from 'react'
import * as ReactQuill from 'react-quill'
import { merge } from 'lodash'
import 'react-quill/dist/quill.snow.css'
const QUILL_MODULES = {
toolbar: [
['bold', 'italic', 'underline'],
[{ list: 'ordered' }, { list: 'bullet' }],
['link']
]
}
interface IAutoFocus {
autofocus?: boolean
}
class CustomQuill extends React.Component<
ReactQuill.ComponentProps & IAutoFocus
> {
quill = React.createRef<ReactQuill & ReactQuill.Mixin>()
@hadnazzar
Copy link

const quillEditorRef = useRef<ReactQuill>(null);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment