Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
redsolutioncms.django-tinymce-attachment
Advanced tools
Allows to attach files and images for any objects, specified in configuration. If you use TinyMCE to edit object content, this module makes for you links to files in hyperlink select box and list of images in image select box.
django-tinymce-attachment.
Put attachment
as LAST item to your INSTALLED_APPS
in your settings.py
within your Django project.
Sync your database ::
./manage.py syncdb
Specify Models for which you`d like to add images and files ::
ATTACHMENT_FOR_MODELS = [
'<app>.models.<Model>',
]
Specify Model to be listed in link-list ::
ATTACHMENT_LINK_MODELS = [
'<app>.models.<Model>',
]
Disable image grouping (enabled by default) ::
GROUP_IMAGES = False
For objects listed in link-list these attributes will be used:
get_absolute_url()
to retrieve url.__unicode()__
to retrieve verbose name.Add attachment to urls.py BEFORE admin/
::
(r'^', include('attachment.urls')), # Must be placed before admin/
settings.py
::
INSTALLED_APPS = (
...
'attachment',
)
ATTACHMENT_FOR_MODELS = [
'item.models.Item',
]
ATTACHMENT_LINK_MODELS = [
'news.models.News',
]
TINYMCE_DEFAULT_CONFIG = {
'external_image_list_url': 'images/',
'external_link_list_url': 'links/',
}
urls.py
::
urlpatterns += patterns('',
(r'^', include('attachment.urls')), # Must be placed before admin/
(r'^admin/', include(admin.site.urls)),
)
Now you can attach images and files to Item object. After you will save Item-object in TinyMCE editor for this page will be available:
Here are screenshots that demonstrates attachment work:
get_image_groups
tag returns a sorted dictContent plugins
_
.. _Content plugins
: http://www.redsolutioncms.org/classifiers/content
.. |Link list| image:: http://github.com/redsolution/django-tinymce-attachment/raw/0.1.0/doc/link-list.png
.. |Image list| image:: http://github.com/redsolution/django-tinymce-attachment/raw/0.1.0/doc/image-list.png
.. |Attached files| image:: http://github.com/redsolution/django-tinymce-attachment/raw/0.1.0/doc/attachments.png
FAQs
Allows to attach files and images for any objects, specified in configuration. If you use TinyMCE to edit object content, this module makes for you links to files in hyperlink select box and list of images in image select box.
We found that redsolutioncms.django-tinymce-attachment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.