Closed l5769389 closed 3 years ago
preview is not effect,this is my code in vue3.0
` const simplemde = new SimpleMDE({ autofocus: true, autosave: { enabled: true, uniqueId: "editor01", delay: 1000, }, blockStyles: { bold: "_", italic: "" }, element:document.getElementById("editor"), forceSync: true, hideIcons: ["guide", "heading"], indentWithTabs: false, initialValue: "SimpleMDE Dome", insertTexts: { horizontalRule: ["", "\n\n-----\n\n"], image: ["![](http://", ")"], link: ["", ""], table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"], }, lineWrapping: false, parsingConfig: { allowAtxHeaderWithoutSpace: true, strikethrough: false, underscoresBreakWords: true, }, placeholder: "placeholder", promptURLs: true, renderingConfig: { singleLineBreaks: false, codeSyntaxHighlighting: true, }, shortcuts: { drawTable: "Cmd-Alt-T" }, showIcons: ["code", "table"], spellChecker: false, status: ["autosave", "lines", "words", "cursor", { className: "keystrokes", defaultValue: function(el) { this.keystrokes = 0; el.innerHTML = "0 Keystrokes"; }, onUpdate: function(el) { el.innerHTML = ++this.keystrokes + " Keystrokes"; } }], styleSelectedText: false, tabSize: 4,
});`
I solved it by:
Hey @l5769389 could you elaborate on what fixed it exactly? This is really hard to read when you haven't used the formatting
preview is not effect,this is my code in vue3.0
` const simplemde = new SimpleMDE({ autofocus: true, autosave: { enabled: true, uniqueId: "editor01", delay: 1000, }, blockStyles: { bold: "_", italic: "" }, element:document.getElementById("editor"), forceSync: true, hideIcons: ["guide", "heading"], indentWithTabs: false, initialValue: "SimpleMDE Dome", insertTexts: { horizontalRule: ["", "\n\n-----\n\n"], image: ["![](http://", ")"], link: ["", ""], table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"], }, lineWrapping: false, parsingConfig: { allowAtxHeaderWithoutSpace: true, strikethrough: false, underscoresBreakWords: true, }, placeholder: "placeholder", promptURLs: true, renderingConfig: { singleLineBreaks: false, codeSyntaxHighlighting: true, }, shortcuts: { drawTable: "Cmd-Alt-T" }, showIcons: ["code", "table"], spellChecker: false, status: ["autosave", "lines", "words", "cursor", { className: "keystrokes", defaultValue: function(el) { this.keystrokes = 0; el.innerHTML = "0 Keystrokes"; }, onUpdate: function(el) { el.innerHTML = ++this.keystrokes + " Keystrokes"; } }], styleSelectedText: false, tabSize: 4,