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

Cannot read properties of undefined (reading 'pop')

LeeQe opened this issue · comments

commented

Cannot read properties of undefined (reading 'pop')
TypeError: Cannot read properties of undefined (reading 'pop')
at new quill_better_table_BetterTable (webpack-internal:///./node_modules/quill-better-table/dist/quill-better-table.js:3067:66)
微信截图_20230802174942

commented

I am also getting exactly the same problem. Please provide a solution.

I have the same error
In that line need to change bindings like this

    let thisBinding = quill.keyboard.bindings['8'].pop()
    quill.keyboard.bindings['8'].splice(0, 1, thisBinding)

Because Quill normalizes the key name and instead of Backspace it makes it the actual key code: 8

I have the same error In that line need to change bindings like this

    let thisBinding = quill.keyboard.bindings['8'].pop()
    quill.keyboard.bindings['8'].splice(0, 1, thisBinding)

Because Quill normalizes the key name and instead of Backspace it makes it the actual key code: 8

you save me!

++ add the route
node_modules > quill-better-table > dist > quill-better-table.js
At first I tried to change the code at quill-better-table.js in src and It doesn't work.
NOT src folder YES dist folder