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

Cannot set cell width or height because inline styles are stripped #722

Merged
merged 9 commits into from
Oct 5, 2017
Merged

Cannot set cell width or height because inline styles are stripped #722

merged 9 commits into from
Oct 5, 2017

Conversation

beatadelura
Copy link
Contributor

@beatadelura beatadelura commented Aug 3, 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 #1014.

@f1ames f1ames changed the title T/16893 Cannot set cell width or height because inline styles are stripped Aug 3, 2017
@f1ames f1ames self-requested a review August 3, 2017 09:31
@@ -150,6 +153,10 @@ CKEDITOR.dialog.add( 'cellProperties', function( editor ) {
inputElement = this.getInputElement(),
ariaLabelledByAttr = inputElement.getAttribute( 'aria-labelledby' );

if ( this.getDialog().getContentElement( 'info', 'height' ).isVisible() ) {
Copy link
Contributor

Choose a reason for hiding this comment

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

When height is not supported, the label should also be hidden (e.g. display: none), as for now it creates some gap in a dialog so the elements are not aligned correctly:
image

@@ -129,6 +129,64 @@
dialog.setValueOf( 'info', 'width', 10 );
dialog.setValueOf( 'info', 'widthType', 'px' );
} );
},

'test test': function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is strange name for a test :)

Also this test fails on FF, IE9.

bender.editorBot.create( {
name: 'required',
config: {
allowedContent: {
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure, but maybe it can be replaced with something like:
allowedContent: *[lang,dir]; table tbody tr...

Test with disallowedContent rule should be added too.

@@ -0,0 +1,11 @@
@bender-tags: 4.7.0, 16893 tc
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update tags to 4.7.2, trac16893, bug


## Expected

Cell width and height fields are not displayed.
Copy link
Contributor

Choose a reason for hiding this comment

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

Cell width and height fields are not visible. All dialog elements are properly aligned (no gap at the top in one of the columns).

@beatadelura
Copy link
Contributor Author

beatadelura commented Sep 25, 2017

TODO:

  • Failing test on IE9, FF (because of bug described below, probably)
  • Removing label when height/width is not supported

Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@f1ames f1ames changed the base branch from master to major October 5, 2017 14:43
@f1ames f1ames merged commit a67b6a1 into ckeditor:major Oct 5, 2017
@f1ames f1ames deleted the t/16893 branch October 5, 2017 14:52
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.

Cannot set cell width or height because inline styles are stripped
3 participants