fix bug on save button

This commit is contained in:
Henrique Dias 2016-12-08 15:57:17 +00:00
parent a24af5bc5d
commit 205f9a22b6

View File

@ -927,7 +927,7 @@ document.addEventListener("editor", (event) => {
let saveContent = function() {
let data = form2js(document.querySelector('form'));
if (typeof data.content === "undefined") {
if (typeof data.content === "undefined" && kind != 'frontmatter-only') {
data.content = "";
}