Wondering which file within the grav directory inserts the markdown editor? Like to explore the setup.
Thanks
Wondering which file within the grav directory inserts the markdown editor? Like to explore the setup.
Thanks
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.
Thanks for the info. Taking me a little while but think my old brain is finally wrapping around Grav;)