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

#7487: DomConverter should treat "td" elements as block element #7584

Merged
merged 4 commits into from
Jul 10, 2020
Merged

Conversation

niegowski
Copy link
Contributor

Suggested merge commit message (convention)

Other (engine): Table cells should not be filled with single spaces while pasting table with empty cells. Closes #7487.

Tests (table): Added test for pasting table with block fillers inside cells.


Additional information

@niegowski niegowski requested a review from jodator July 8, 2020 14:22
Copy link
Contributor

@jodator jodator left a comment

Choose a reason for hiding this comment

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

There's <th> and it might cause similar problems.

@@ -82,7 +82,7 @@ export default class DomConverter {
* @readonly
* @member {Array.<String>} module:engine/view/domconverter~DomConverter#blockElements
*/
this.blockElements = [ 'p', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'dd', 'dt', 'figcaption' ];
this.blockElements = [ 'p', 'div', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'li', 'dd', 'dt', 'figcaption', 'td' ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing th and test for it :P

@niegowski niegowski requested a review from jodator July 10, 2020 11:43
@jodator jodator merged commit 284c7c1 into master Jul 10, 2020
@jodator jodator deleted the i/7487 branch July 10, 2020 12:13
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.

Pasting table into table adds spaces in empty cells
2 participants