Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

What file is markdown editor inserted into?

Started by Muut Archive 10 years ago · 2 replies · 409 views
10 years ago

Wondering which file within the grav directory inserts the markdown editor? Like to explore the setup.

Thanks

10 years ago

The editor is just a form field. The field is defined in the default.yaml blueprint: https://github.com/getgrav/grav/blob/develop/system/blueprints/pages/default.yaml#L30-L33

The field is defined here: https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/templates/forms/fields/markdown/markdown.html.twig which actually extends this one: https://github.com/getgrav/grav-plugin-admin/blob/develop/themes/grav/templates/forms/fields/editor/editor.html.twig

Most of the logic for the initialization of the editor is coming from the JavaScript.

10 years ago

Thanks for the info. Taking me a little while but think my old brain is finally wrapping around Grav;)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2288 9 years ago
Archive · by Muut Archive, 9 years ago
2 1500 9 years ago
Archive · by Muut Archive, 9 years ago
2 4751 9 years ago
Archive · by Muut Archive, 9 years ago
1 3566 9 years ago
Archive · by Muut Archive, 9 years ago
3 1626 9 years ago