Skip to content

Commit

Permalink
Make newly created table syntax consistent among browsers and behave …
Browse files Browse the repository at this point in the history
…visually better in webkit.
  • Loading branch information
Oliver Pulges committed Mar 6, 2015
1 parent 7801f57 commit af7ff1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/commands/createTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
for (row = 0; row < value.rows; row ++) {
html += '<tr>';
for (col = 0; col < value.cols; col ++) {
html += "<td></td>";
html += "<td><br></td>";
}
html += '</tr>';
}
Expand Down
8 changes: 4 additions & 4 deletions test/editor_commands_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ if (wysihtml5.browser.supported()) {
expectText = '<table style="width: 100%;">' +
'<tbody>' +
'<tr>' +
'<td></td>' +
'<td></td>' +
'<td><br></td>' +
'<td><br></td>' +
'</tr>' +
'<tr>' +
'<td></td>' +
'<td></td>' +
'<td><br></td>' +
'<td><br></td>' +
'</tr>' +
'</tbody>' +
'</table>';
Expand Down

0 comments on commit af7ff1e

Please sign in to comment.