Skip to content
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

Tableresize plugin should check if table body exists. #448

Merged
merged 8 commits into from
Jun 8, 2017
Merged

Tableresize plugin should check if table body exists. #448

merged 8 commits into from
Jun 8, 2017

Conversation

f1ames
Copy link
Contributor

@f1ames f1ames commented Jun 1, 2017

What is the purpose of this pull request?

Bug fix

Does your PR contain necessary tests?

All patches which change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.

This PR contains

  • Unit tests
  • Manual tests

What changes did you make?

Closes #417.

@Comandeer Comandeer self-requested a review June 2, 2017 15:47
Copy link
Member

@Comandeer Comandeer left a comment

Choose a reason for hiding this comment

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

The fix is working correctly, but… there is also tfoot case, which is not working with our current tableresize plugin.

I propose to include also fix for this case in this PR. WDYT, @f1ames?

@f1ames
Copy link
Contributor Author

f1ames commented Jun 6, 2017

@Comandeer Do you mean table with only tfoot element? I think it is reasonable to include it here too.

@f1ames f1ames requested a review from Comandeer June 6, 2017 07:32
@@ -70,7 +74,12 @@
}

if ( table.$.tFoot ) {
pillarHeight += table.$.tFoot.offsetHeight;
var tFoot = new CKEDITOR.dom.element( table.$.tFoot );
Copy link
Member

Choose a reason for hiding this comment

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

After that changes we have very similar code in three parts of this plugin. It will be nice to extract it into separate function.

@@ -0,0 +1,12 @@
@bender-ui: collapsed
@bender-tags: tc, 4.7.1, gh417
Copy link
Member

Choose a reason for hiding this comment

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

Please change tags to our new convention.

@@ -0,0 +1,12 @@
@bender-ui: collapsed
@bender-tags: tc, 4.7.1, gh417
Copy link
Member

Choose a reason for hiding this comment

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

Please change tags to our new convention.

@f1ames
Copy link
Contributor Author

f1ames commented Jun 8, 2017

Rebased on latest master.

@f1ames f1ames self-assigned this Jun 8, 2017
@f1ames f1ames requested a review from Comandeer June 8, 2017 07:23
@f1ames f1ames removed their assignment Jun 8, 2017
@Comandeer Comandeer merged commit 743ae24 into ckeditor:master Jun 8, 2017
@Comandeer Comandeer deleted the t/417 branch June 8, 2017 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants