diff --git a/themes/grav/templates/forms/fields/frontmatter/frontmatter.html.twig b/themes/grav/templates/forms/fields/frontmatter/frontmatter.html.twig index 64788f3f..78802a76 100644 --- a/themes/grav/templates/forms/fields/frontmatter/frontmatter.html.twig +++ b/themes/grav/templates/forms/fields/frontmatter/frontmatter.html.twig @@ -1,49 +1,10 @@ -{% set value = (value is null ? field.default : value) %} +{# Deprecated field. Alias to editor/editor.html.twig #} -
-
- -
-
-
- -
-
-
-
- +{# backward compatibility #} +{% if field.showPreview %} + {% set codemirrorOptions = codemirrorOptions|merge({'ignore': []}) %} +{% endif %} +{# end backward compatibility #}