gtgalone / react-quilljs

React Hook Wrapper for Quill, powerful rich text editor.
https://www.npmjs.com/package/react-quilljs
MIT License
248 stars 28 forks source link

How to import quill parchment #34

Closed nathanmaru closed 3 years ago

nathanmaru commented 3 years ago

I plan to create a custom format and it says that I have to do it with parchment. But how can I do it using this?

what I want to do: var Parchment = Quill.import('parchment');

what I tried to do: useEffect(() => { if (quill) { console.log(quill.import('parchment')); } }, [quill]);

but it says TypeError: quill.import is not a function

please help me.

SilvaQ commented 3 years ago

just normal import from module, do not try to install or other. for example:

image