directus-extension-milkdown-editor
v1.0.5
Published
Provide a WYSIWYG markdown editing experience in Directus using Milkdown (Crepe) with direct image upload support.
Maintainers
Readme
Directus Extension: Milkdown Editor
A powerful, beautiful, and highly customizable WYSIWYG Markdown editor interface for Directus, powered by Milkdown and its Crepe theme.
Features
- Modern UI/UX: Built on top of Milkdown's Crepe theme, providing an elegant and distraction-free writing experience.
- Native Directus Integration: Fully supports Directus Light/Dark modes seamlessly by mapping native CSS variables.
- Directus File Uploads: Drag and drop images or use the file picker to upload files directly into your Directus Files Library. Includes an option to specify the target folder for uploads directly from the interface settings!
- Markdown Output: Saves purely standard Markdown strings into your database (perfect for SSG, frontend applications, and mobile apps).
Installation
You can install this extension via npm:
npm install directus-extension-milkdown-editorOr just find it in the Directus Marketplace under your project settings!
Usage & Configuration
- In your Directus Data Model, create or edit a Text, String, or Markdown field.
- In the "Interface" section, choose Milkdown Editor.
- Image Folder (Optional): In the options, you can select a specific folder from your Directus File Library where dragged/uploaded images should be stored. If left empty, images will be uploaded to the root file directory.
Development
If you want to modify or build this extension yourself:
npm install
npm run buildThe extension will be built into the dist/ directory.
License
This project is licensed under the MIT License.
