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

Edit .md page with AJAX and PHP

Started by Muut Archive 11 years ago · 3 replies · 447 views
11 years ago

In the frontend of my website I am trying to load the raw .md page inside a textarea with AJAX, then I want to use EpicEditor to edit it, then I'd like to save the file with PHP and AJAX.

I see in the .htaccess that I cannot access md files, do I need to remove md files from there if I want to get the file with AJAX, or is there a way to get the .md file with Grav API? Something like {{ page.content|raw }}?

11 years ago

Your asking about functionality that is going to be in the Admin plugin (well not ajax yet), but it's a complicated question, and you can get some of this from looking at the admin code when its released on github.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2278 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3557 9 years ago
Archive · by Muut Archive, 9 years ago
3 1621 9 years ago