attoae / quill-table-better

A module that enhances the table functionality of Quill.
MIT License
59 stars 5 forks source link

Cannot read properties of null (reading 'classList') #1

Closed tqkqt0 closed 4 months ago

tqkqt0 commented 4 months ago

Good job!

If I insert several tables in succession and the number of columns is different, an error occurs.

image

ERROR
Cannot read properties of null (reading 'classList')
TypeError: Cannot read properties of null (reading 'classList')
at dt.handleMousedown (http://localhost:3000/static/js/bundle.js:167090:73)
at Ve.handleMousedown (http://localhost:3000/static/js/bundle.js:170111:30)

P.S I want disable option for 'Table properties' and 'Cell properties'. I would be happy if you could respond

thank you

attoae commented 4 months ago

Hi @tqkqt0 I have not reproduced this issue. Are you attempting to insert a table within a table? Currently, this functionality is not supported. Do you need to configure the operation bar?

tqkqt0 commented 4 months ago

Thank you for your reply. I really appreciate your excellent work.

Are you attempting to insert a table within a table? Currently, this functionality is not supported.

Yes. For example, in the service I'm developing, users can freely add tables wherever they want. It would be helpful if we could prevent errors when adding a table within a table.

Do you need to configure the operation bar?

Yes. In my service, including dark mode, I don't want the styling of table lines in published articles using Quill. It would be great if I could specify detailed editing options, or at the very least disable properties.

Other requests:

attoae commented 4 months ago

You can try v1.0.2 to configure the operation bar and add custom languages. (config)

tqkqt0 commented 4 months ago

I tried it right away and it's perfect. Thank you for your fast and great response.