-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
#6549: Adding a new row in the table copies structure of the selected row. #6748
Conversation
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.
I need to take longer time to think on this to not over-engineer something here.
I wonder if we need copying structure from any not-related row.
# Conflicts: # packages/ckeditor5-table/src/commands/insertrowcommand.js # packages/ckeditor5-table/tests/commands/insertrowcommand.js
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.
@niegowski Sorry for a longer review on this. I think that it would be better to make some calculations here a bit more straightforward. The way how -1
work here is hard to grasp. It do the job but it might require some time for others to dig into this code later on.
Check on some proposals below but anything less complicated is also welcome :)
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.
This turned out to be a more complex task than it looked at first. Probably like most table related tasks :D
Hopefully we will remember why this looks like this and new comments will help with that :crossed_fingers:
Suggested merge commit message (convention)
Other (table): Adding a new row in the table copies the structure of the selected row. Closes #6549.
Additional information