From af7ff1e12937ef331a8ebd1aa5a31b9f676f46df Mon Sep 17 00:00:00 2001 From: Oliver Pulges Date: Fri, 6 Mar 2015 14:00:07 +0200 Subject: [PATCH] Make newly created table syntax consistent among browsers and behave visually better in webkit. --- src/commands/createTable.js | 2 +- test/editor_commands_test.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/commands/createTable.js b/src/commands/createTable.js index 86e24d5..d829a24 100644 --- a/src/commands/createTable.js +++ b/src/commands/createTable.js @@ -12,7 +12,7 @@ for (row = 0; row < value.rows; row ++) { html += ''; for (col = 0; col < value.cols; col ++) { - html += ""; + html += "
"; } html += ''; } diff --git a/test/editor_commands_test.js b/test/editor_commands_test.js index 3660dcd..ae476e3 100644 --- a/test/editor_commands_test.js +++ b/test/editor_commands_test.js @@ -310,12 +310,12 @@ if (wysihtml5.browser.supported()) { expectText = '' + '' + '' + - '' + - '' + + '' + + '' + '' + '' + - '' + - '' + + '' + + '' + '' + '' + '




';