From 205f9a22b6e33d557dabb8f75755aa5481a7665c Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 8 Dec 2016 15:57:17 +0000 Subject: [PATCH] fix bug on save button --- _embed/public/js/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_embed/public/js/application.js b/_embed/public/js/application.js index f4dd5509..3ae44ce8 100644 --- a/_embed/public/js/application.js +++ b/_embed/public/js/application.js @@ -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 = ""; }