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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user