Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
django-trumbowyg is the Django-related reusable app for integrating Trumbowyg WYSIWYG editor <http://alex-d.github.io/Trumbowyg/>
. It is recognized as one of the best WYSIWYG editors <https://github.com/iDoRecall/comparisons/blob/master/JavaScript-WYSIWYG-editors.md>
.
Initially this package was forked from Django FS Trumbowyg <https://bitbucket.org/fogstream/django-fs-trumbowyg/>
_ package and then reworked.
Install django-trumbowyg
using pip
::
$ pip install django-trumbowyg
Add 'trumbowyg'
to your INSTALLED_APPS
setting::
INSTALLED_APPS = ( ... 'trumbowyg', ... )
Update your urls.py
::
url(r'^trumbowyg/', include('trumbowyg.urls'))
Sometimes you might want to limit size of uploaded images, e.g. if they are too large. In this case just put in settings (if you omit this, the image will be uploaded unchanged)::
TRUMBOWYG_THUMBNAIL_SIZE = (1920, 1080)
The package will try to use the language defined in LANGUAGE_CODE
and if this language isin't availabe the default is en
(Optional) If you wish image filenames to be transliterated, install unidecode <https://pypi.org/project/Unidecode/>
_ from PyPi and set::
TRUMBOWYG_TRANSLITERATE_FILENAME = True
Set semantics if necessary. It defaults to false
::
TRUMBOWYG_SEMANTIC = 'true'
Don't forget to add {{ form.media }}
to form template.
Use TrumbowygWidget
in your forms::
from django.forms import ModelForm
from django.contrib.admin import ModelAdmin
from trumbowyg.widgets import TrumbowygWidget
from your_app.models import YourModel
class YourModelAdminForm(ModelForm):
class Meta:
model = YourModel
widgets = {
'text': TrumbowygWidget(),
}
class YourModelAdmin(admin.ModelAdmin):
form = YourModelAdminForm
admin.site.register(YourModel, YourModelAdmin)
Fogstream <http://fogstream.ru/>
_Alex-D <http://alex-d.fr/>
_FAQs
Trumbowyg (WYSIWYG editor) integration app for Django admin.
We found that django-trumbowyg 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.