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 = ""; }