
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Use a simple markdown editor https://github.com/Ionaru/easy-markdown-editor in django forms. This project is inspired by https://github.com/sparksuite/simplemde-markdown-editor and https://github.com/douglasmiranda/django-wysiwyg-redactor/.
Note that SimpleMDE is no longer in development, and has been forked to create EasyMDE, which is in active development as of mid-2024.
pip install django-easymde
INSTALLED_APPS = (
# ...
'easymde',
# ...
)
from django.db import models
from easymde.fields import EasyMDEField
class Entry(models.Model):
title = models.CharField(max_length=250, verbose_name=u'Title')
content = EasyMDEField(verbose_name=u'mardown content')
Note: The widget EasyMDEWidget
can also be used in forms on existing fields.
EasyMDE options can be set in settings.py
:
EASYMDE_OPTIONS = {
'placeholder': 'Type here...',
'status': False,
'autosave': {
'enabled': True
}
}
For the autosave option, this plugin will generate uniqueId with python's uuid.uuid4 automatically.
Right now, this plugin supports EasyMDE Configurations, but only the static ones(no support for javascript configurations such as previewRender
)
After EasyMDE is initialized, a EasyMDE instance can be retrieved from the DOM element:
$('.easymde-box')[0].EasyMDE
FAQs
django-easymde is a WYSIWYG markdown editor for Django
We found that django-easymde demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.