soccerloway / quill-better-table

Module for better table in Quill, more useful features are supported.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

incompatibility with quill 2.0.0.4

tedchou12 opened this issue · comments

commented

I found quill 2.0.0.4
https://libraries.io/npm/quill

I am using 2.0.0.4 because 2.0.0.3 has some input issues especially with the Chinese input I am using.
(I think is a bug of 2.0.0.3

However I found out that quill-better-table has some errors with 2.0.0.4:
Javascript errors:

quill-better-table.min.js:2152 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
    at table_selection_TableSelection.mouseDownHandler (quill-better-table.min.js:2152)
mouseDownHandler @ quill-better-table.min.js:2152

截圖 2020-06-08 下午12 41 20

Could I know if there could be possible fixes?
Thank you so much!

commented

seems like is an issue with disabling the default button behavior.

commented

@tedchou12 I was just watching:)

commented

Did you have it work well?

commented

@soccerloway
Thank you!
Actually, I found another error, when you combine (3,3) and (4,4), there will be empty space and those will cause errors:

quill-better-table.min.js:2162 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
    at HTMLDivElement.mouseMoveHandler (quill-better-table.min.js:2162)
mouseMoveHandler @ quill-better-table.min.js:2162
5quill-better-table.min.js:2942 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined
    at HTMLDivElement.<anonymous> (quill-better-table.min.js:2942)
(anonymous) @ quill-better-table.min.js:2942
2quill-better-table.min.js:2152 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
    at table_selection_TableSelection.mouseDownHandler (
commented

Screen Shot 2020-06-10 at 12 52 31

I have the same error in quill version 2.0.0.3 and vue 2.6.11.
And in using other function like Add table column right.

It seems like can't get the selection cell/column/row correctly.