Added more if-member-of checks; added simplemde support.
This commit is contained in:
parent
ac070b537f
commit
66d4b2af4d
2 changed files with 274 additions and 143 deletions
17
resources/js/text-area-md-support.js
Normal file
17
resources/js/text-area-md-support.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
var simplemde = new SimpleMDE({
|
||||
autosave: {
|
||||
enabled: true,
|
||||
uniqueId: "Smeagol-{{page}}",
|
||||
delay: 1000,
|
||||
},
|
||||
indentWithTabs: true,
|
||||
insertTexts: {
|
||||
horizontalRule: ["", "\n\n-----\n\n"],
|
||||
image: [""],
|
||||
link: ["[", "](http://)"],
|
||||
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
|
||||
},
|
||||
showIcons: ["code"], //, "table"], - sadly, markdown-clj does not support tables
|
||||
spellChecker: true,
|
||||
status: ["autosave", "lines", "words", "cursor"]
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue