feat(ext-blog): Add rich Markdown editor for blog posts

Replace the plain textarea with a CodeMirror-based editor supporting syntax highlighting, formatting toolbar (bold, italic, lists, code blocks), and a live preview toggle. Update PostContentRenderer to handle new Markdown syntax (blockquotes, fenced code blocks). Add a preview endpoint for rendering content without saving.
This commit is contained in:
2026-12-02 11:09:09 +01:00
parent d035a18ee6
commit 19e6b1a332
17 changed files with 1127 additions and 38 deletions
+1
View File
@@ -4,6 +4,7 @@ use Plugi\Extensions;
Extensions::addRoutes([
'/ext--blog/save-post' => __DIR__ . '/routes/savePost.php',
'/ext--blog/preview-post' => __DIR__ . '/routes/previewPost.php',
'/ext--blog/delete-post' => __DIR__ . '/routes/deletePost.php',
'/ext--blog/save-category' => __DIR__ . '/routes/saveCategory.php',
'/ext--blog/delete-category' => __DIR__ . '/routes/deleteCategory.php',