
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Use markdown editor https://github.com/sparksuite/simplemde-markdown-editor in django project, this project is inspired by https://github.com/douglasmiranda/django-wysiwyg-redactor/
pip install django-simplemde
INSTALLED_APPS = (
# ...
'simplemde',
# ...
)
from django.db import models
from simplemde.fields import SimpleMDEField
class Entry(models.Model):
title = models.CharField(max_length=250, verbose_name=u'Title')
content = SimpleMDEField(verbose_name=u'mardown content')
You could set SimpleMDE options in settings.py like this:
SIMPLEMDE_OPTIONS = {
'placeholder': 'haha',
'status': False,
'autosave': {
'enabled': True
}
}
Right now this plugin supports SimpleMDE Configurations, but only the static ones(don't support js configurations like previewRender
)
for autosave option, you dont need to set it, this plugin will generate uniqueId with python's uuid.uuid4 automatically
After SimpleMDE initialized, you could get SimpleMDE instance from dom element like this:
$('.simplemde-box')[0].SimpleMDE
FAQs
django-simplemde is a WYSIWYG markdown editor for Django
We found that django-simplemde demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.