Closed nathanmaru closed 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');
var Parchment = Quill.import('parchment');
what I tried to do: useEffect(() => { if (quill) { console.log(quill.import('parchment')); } }, [quill]);
useEffect(() => { if (quill) { console.log(quill.import('parchment')); } }, [quill]);
but it says TypeError: quill.import is not a function
TypeError: quill.import is not a function
please help me.
just normal import from module, do not try to install or other. for example:
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.