Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
3.97k stars 606 forks source link

Table plugin - Editor freeze on chrome and cursor issue on firefox #1410

Open sumeetdnq opened 11 months ago

sumeetdnq commented 11 months ago

Description

Issue 1: Table plugin + Chrome If huge table(sample table attached) like below is pasted in the editor, then on chrome editor slows down/hangs. Sample table.xlsx

Does not hang on firefox.

Issue 2: Cursor cannot jump outside the table on firefox

If table is pasted on the very first line and character in the editor then there is no way to get out of the table and type at the top or bottom of the table.

On chrome, you can get cursor out by placing cursor on first and last cell then use arrow buttons.

How to reproduce?

Both issues are tested and replicable on demo website

https://alex-d.github.io/Trumbowyg/

https://alex-d.github.io/Trumbowyg/demos/#plugins-table

panorius commented 10 months ago

i have the same problem. Big lag pending rezize event of the table when you write more that the cell width.