zenoamaro / react-quill

A Quill component for React.
https://zenoamaro.github.io/react-quill
MIT License
6.59k stars 906 forks source link

chunk-QYYA6GZJ.js?v=86847e0a:9145 Uncaught TypeError: Cannot read properties of null (reading 'innerHTML') at IconPicker2.selectItem (react-quill.js?v=fb924d18:9699:47) at new IconPicker2 (react-quill.js?v=fb924d18:9691:23) at react-quill.js?v=fb924d18:7019:30 at Array.map (<anonymous>) at SnowTheme2.buildPickers (react-quill.js?v=fb924d18:7014:42) at SnowTheme2.extendToolbar (react-quill.js?v=fb924d18:9928:24) at SnowTheme2.addModule (react-quill.js?v=fb924d18:6982:26) at react-quill.js?v=fb924d18:6254:29 at Array.forEach (<anonymous>) at SnowTheme2.init (react-quill.js?v=fb924d18:6252:53) #964

Open AshokkumarAnnadurai opened 3 months ago

AshokkumarAnnadurai commented 3 months ago

Thanks for filing an issue!

If at all possible, please provide a Codesandbox or Codepen to demonstrate the problem you're having with React Quill. Here's a [template] to get you started.

⚠️ Make sure that your bug hasn't already been fixed by ReactQuill v2.0.0-beta.2. See the homepage for instructions on how to upgrade.

[template]: https://codesandbox.io/s/react-quill-template-u9c9c

Ticket due diligence

ReactQuill version

FAQ

Is this a bug in Quill or ReactQuill?

ReactQuill is just a ~thin~ wrapper on top of the Quill editor. Often, what looks like a bug in ReactQuill, is actually a bug in the Quill editor itself. Before opening a ticket, please check the [Quill documentation], and the [issues page], and see if that answers your question first.

[Quill documentation]: https://quilljs.com/docs

[issues page]: https://github.com/quilljs/quill/issues

How do I access the wrapped Quill instance?

See the [instance methods] and [API] documentation.

[instance methods]: https://github.com/zenoamaro/react-quill#methods

[API]: https://github.com/zenoamaro/react-quill#api-reference

iantbarker commented 2 months ago

I get this when making a custom toolbar and including the align item: <select className="ql-align" />

My setup is to have both quill and monaco so that I can have a WYSIWYG editor with HTML code editing capabilities.

It works on load, but then errors out when going back to Quill.

https://codesandbox.io/p/sandbox/quill-monaco-combo-8gwm8s

iantbarker commented 2 months ago

Nevermind... Looks like a Quill issue [https://github.com/quilljs/quill/issues/2287]()