Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Fix: Inserting table column at first col-row spanned cell should work properly. #289

Merged
merged 2 commits into from
Mar 30, 2020

Conversation

niegowski
Copy link
Contributor

Suggested merge commit message (convention)

Fix: Inserting table column at the first col-row spanned cell should work properly. Closes ckeditor/ckeditor5#5882.


Additional information

@coveralls
Copy link

Coverage Status

Coverage remained the same at 99.935% when pulling f516ddf on i/5882 into 725a861 on master.

@oleq oleq requested a review from jodator March 27, 2020 15:13
@@ -228,7 +228,7 @@ export default class TableUtils extends Plugin {
const rowspan = parseInt( cell.getAttribute( 'rowspan' ) || 1 );
const colspan = parseInt( cell.getAttribute( 'colspan' ) || 1 );

if ( cell.index !== insertAt && colspan > 1 ) {
if ( cellIndex !== insertAt && colspan > 1 ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎼🎼🎼🎼

@jodator jodator merged commit d239f69 into master Mar 30, 2020
@jodator jodator deleted the i/5882 branch March 30, 2020 07:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding column next to down+left merged cell works incorrectly
4 participants