quill-better-table icon indicating copy to clipboard operation
quill-better-table copied to clipboard

incompatibility with quill 2.0.0.4

Open tedchou12 opened this issue 4 years ago • 6 comments

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!

tedchou12 avatar Jun 08 '20 03:06 tedchou12

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

tedchou12 avatar Jun 09 '20 16:06 tedchou12

@tedchou12 I was just watching:)

soccerloway avatar Jun 09 '20 16:06 soccerloway

Did you have it work well?

soccerloway avatar Jun 09 '20 16:06 soccerloway

@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 (

tedchou12 avatar Jun 10 '20 03:06 tedchou12

Screen Shot 2020-06-10 at 12 52 31

tedchou12 avatar Jun 10 '20 03:06 tedchou12

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.

frocelu avatar Jun 23 '20 15:06 frocelu