-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimization of table block #1456
Conversation
c196b14
to
2ecdf20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool feature and I like it 😄 I found a few improvements and one bug, please see below.
- I prefer the delete button from table tools on the right side - like before
- The current drag&drop context menu text is a little bit confusing. Please adjust to something like
Insert Row/Column Above/Below
,Remove (current) Row/Column
. - Table cell content should be deleted when selecting multiple cells and pressing delete key like
Backspace
- Please remove all
console.log
debug lines - Editor context menu
Copy
is disabled when selecting multiple cells but copies table cells
Bug:
TypeError: Cannot read property 'row' of null
when insert a paragraph before or after table with editor context menu and type some text in new paragraph.
This is not easy to implemented only by css, because our table is not 100% width now.
Modified
Added
Fixed
Support copy and cut selected table cells by shortcut and context menu.
Can not reproduce it!? |
…ow bottom drag bar if only one column.
… there are more than two drag bars in one table.
94086eb
to
3625af5
Compare
Fixed, pls test again. |
The bug is fixed but I noticed another issue when selecting multiple cells (so the cells are blue) and keep pressing left mouse button until the cursor is outside the table. The blue selection get unmarked but when you stop pressing left mouse button outside the table |
Fixed |
Description
backspace
to remove all the content of selected cells. pressbackspace
again will remove column or row if select one empty column or row.backspace
to remove whole table when selected all the cells of table and the table is empty.Existed Bugs
Can not copy tableupstream lib bug, should fix in other PR.backspace
will cause bugbackspace
to jump to previous cell is not work, and select whole cell content, and pressbackspace
is not work.Screen shot
This change is![Reviewable](https://camo.githubusercontent.com/23b05f5fb48215c989e92cc44cf6512512d083132bd3daf689867c8d9d386888/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)