mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-12 08:16:06 +01:00
Remove YAML headers from preview with smart new-line detection
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user