Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

What file is markdown editor inserted into?

Started by Muut Archive 10 years ago · 2 replies · 339 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 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago