diff --git a/themes/grav/js/htmleditor.js b/themes/grav/js/htmleditor.js
index 33d3de4d..008ce626 100755
--- a/themes/grav/js/htmleditor.js
+++ b/themes/grav/js/htmleditor.js
@@ -267,7 +267,7 @@
render: function() {
- this.currentvalue = this.editor.getValue();
+ this.currentvalue = this.editor.getValue().replace(/^---\n([^---]*)---\n{1,}/, '');
// empty code
if (!this.currentvalue) {