Martor - Django Markdown Editorο
Martor is a comprehensive Markdown Editor plugin for Django, designed to provide a powerful and user-friendly markdown editing experience with support for both Bootstrap and Semantic-UI frameworks.
Featuresο
π Live Preview - Real-time markdown rendering
β‘ Ace Editor Integration - Powerful code editor with syntax highlighting
π¨ Dual Theme Support - Bootstrap and Semantic-UI compatible
π€ Image Upload - Direct upload to imgur.com or custom endpoints
π₯ User Mentions - Direct mention users with
@[username]syntax㪠Video Embedding - Embed videos from YouTube, Vimeo, and more
β Spellcheck - Built-in spell checking (US English)
π Emoji Support - Full emoji support with cheat sheets
π§ Django Admin Integration - Seamless admin interface integration
π‘οΈ Security Features - XSS protection and HTML sanitization
π Custom ID Support - Add custom IDs to text elements
π§© Extensible - Custom markdown extensions support
Quick Startο
Installation:
pip install martor
Add to your Django settings:
INSTALLED_APPS = [
...
'martor',
]
Include Martor URLs:
urlpatterns = [
...
path('martor/', include('martor.urls')),
]
Collect static files:
python manage.py collectstatic
Usage in your models:
from martor.models import MartorField
class Post(models.Model):
content = MartorField()
Thatβs it! You now have a powerful markdown editor in your Django application.
Documentation Contentsο
Getting Started
User Guide
- Using Martor with Models
- Using Martor with Forms
- Customizing Martor Widgets
- Available Widgets
- Basic Widget Usage
- Widget Configuration
- Advanced Widget Customization
- Theme-Specific Widgets
- Widget Media Configuration
- Widget Templates
- JavaScript API Integration
- Multiple Editors
- Performance Optimization
- Widget with Custom Upload Handler
- Usage Examples
- Troubleshooting Widgets
- Best Practices
- Next Steps
- Using Martor in Django Admin
- Basic Admin Setup
- Advanced Admin Configuration
- Custom Admin Widget Configuration
- Admin Media Configuration
- Multi-Language Admin
- Bulk Actions with Martor
- Admin List Display with Markdown Preview
- Admin Filters for Markdown Content
- Custom Upload Endpoints for Admin
- Admin Templates Customization
- Troubleshooting Admin Integration
- Best Practices for Admin
- Next Steps
- Template Integration
API Reference
Examples & Tutorials
Help & Support
Screenshotsο
Martor Editor Interface:
Live Preview:
Community & Supportο
Licenseο
Martor is released under the GNU General Public License v3.0.