Fix table spacing

Removed an extra space that caused the tables to be wrongly aligned, when the table button was pressed.
patch-ionaru
adriaanzon 8 years ago
parent 0ce602f68d
commit aa2ebfe983

@ -374,7 +374,7 @@ function toggleSideBySide(editor) {
if(!cm.sideBySideRenderingFunction) {
cm.sideBySideRenderingFunction = sideBySideRenderingFunction;
}
if(useSideBySideListener) {
preview.innerHTML = editor.options.previewRender(editor.value(), preview);
cm.on("update", cm.sideBySideRenderingFunction);
@ -828,7 +828,7 @@ var toolbarBuiltInButtons = {
var insertTexts = {
link: ["[", "](http://)"],
image: ["![](http://", ")"],
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
horizontalRule: ["", "\n\n-----\n\n"]
};

Loading…
Cancel
Save