-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
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.
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?
@Comandeer Do you mean table with only |
plugins/tableresize/plugin.js
Outdated
@@ -70,7 +74,12 @@ | |||
} | |||
|
|||
if ( table.$.tFoot ) { | |||
pillarHeight += table.$.tFoot.offsetHeight; | |||
var tFoot = new CKEDITOR.dom.element( table.$.tFoot ); |
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.
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 |
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.
Please change tags to our new convention.
@@ -0,0 +1,12 @@ | |||
@bender-ui: collapsed | |||
@bender-tags: tc, 4.7.1, gh417 |
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.
Please change tags to our new convention.
Rebased on latest |
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
What changes did you make?
Closes #417.