mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-23 16:00:11 +02:00
Fix table spacing
Removed an extra space that caused the tables to be wrongly aligned, when the table button was pressed.
This commit is contained in:
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…
Reference in a new issue