markdown preview

This commit is contained in:
masnn committed 2020-06-12 23:14:19 +08:00
1 parent 86f67a0ec3
commit 5ca424da0b
15 files changed
+123 -104

No files matched your search

+2 -1
View File
@@ -92,8 +92,9 @@ export default class VjCmEditor extends SimpleMDE {
}
async markdown(text) {
// FIXME preview wont update after first toggle
const data = await request.ajax({
url: '/preview',
url: '/markdown',
method: 'post',
data: $.param({ text }, true),
dataType: 'text',