From cc7b2a73982b2e7ea270119e56389b394f031f95 Mon Sep 17 00:00:00 2001 From: xiaomai Date: Wed, 8 Oct 2025 10:13:18 +0800 Subject: [PATCH] feat(admin): integrate markdown editor for news creation This commit replaces the basic textarea in the 'Add News' modal with a full-featured Markdown editor. - Adds the `md-editor-v3` dependency. - Implements the editor within a `ClientOnly` component for client-side rendering. - Creates a Nuxt plugin to register the `MdEditor` component globally. - Adjusts the modal to be fullscreen to provide a better user experience for content creation. --- .../admin/contents/news/AddModal.vue | 23 +- app/plugins/md-editor.client.ts | 6 + package.json | 1 + pnpm-lock.yaml | 644 +++++++++++++++++- 4 files changed, 663 insertions(+), 11 deletions(-) create mode 100644 app/plugins/md-editor.client.ts diff --git a/app/components/admin/contents/news/AddModal.vue b/app/components/admin/contents/news/AddModal.vue index 88a8fb9..5e279e4 100644 --- a/app/components/admin/contents/news/AddModal.vue +++ b/app/components/admin/contents/news/AddModal.vue @@ -1,29 +1,36 @@