|
@@ -165,8 +165,11 @@ submitButton.onclick = function () {
|
|
|
|
|
|
editor.save().then((outputData) => {
|
|
|
//console.log('Article data: ', outputData);
|
|
|
- var mdContent = GetMdHeader();
|
|
|
- mdContent = mdContent.replace('draft: ' + (!$('#cdraft').is(':checked')), 'draft: ' + $('#cdraft').val())
|
|
|
+ //var mdContent = GetMdHeader();
|
|
|
+ var mdContent = frontMatters.join('\n');
|
|
|
+ //console.log(mdContent);
|
|
|
+ //console.log(frontMatters.join('\n'));
|
|
|
+ //mdContent = mdContent.replace('draft: ' + (!$('#cdraft').is(':checked')), 'draft: ' + $('#cdraft').val())
|
|
|
//alert(mdContent);
|
|
|
/*
|
|
|
for (var frontMatter of frontMatters) {
|