
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
django-ckeditor-filer
Advanced tools
Adds a button in the django-ckeditor to load images into the django-filer
Adds a button in the ckeditor to load images into the filer.
WYSIWYG-редакторы нужны для облегчения жизни простого пользователя, поэтому грешно заставлять пользователя копировать URL изображения и вставлять в формочку, как это делается в плагине Image редатора ckeditor. В django-ckeditor есть функция загрузки изображений, но она просто загружает файлы в media-каталог, что лишает пользователей возможности управлять ими из админки. Не пользоваться удобствами django-filer не менее грешно! Этот django app призван уберечь ваши проекты от грехопадения с помощью интеграции ckeditor и filer. Он добавляет в панель insert кнопку Filer, которая почти полностью идентична кнопке Image, но загружает изображения в Filer.
::
$ pip install django-ckeditor-filer
Потом следует добавить 'ckeditor_filer' в INSTALLED_APPS
В ulrs.py вашего проекта ::
url(r'^ckeditor-filer/', include('ckeditor_filer.urls')),
И в settings.py ::
CKEDITOR_CONFIGS = { 'default': { 'toolbar_MyToolbar': [ { 'name': 'insert', 'items': ['Image', 'Filer', 'Flash', 'Table', 'HorizontalRule', 'Smiley', 'SpecialChar', 'PageBreak', 'Iframe'] }, ], 'toolbar': 'MyToolbar', 'extraPlugins': 'filer' } }
CKEditor в Django CMS подключается с помощью плагина djangocms-text-ckeditor. Модуль можно использовать и с ним. Для этого понадобиться создать символьную сслыку на каталог статики плагина ::
ln -s <STATIC_ROOT>/ckeditor/ckeditor/plugins/filer/ <STATIC_ROOT>/djangocms_text_ckeditor/ckeditor/plugins/filer/
Или прописать alias в конфигурации вашего web-сервера. Например для Nginx ::
location /static/djangocms_text_ckeditor/ckeditor/plugins/filer/ {
alias <STATIC_ROOT>/ckeditor/ckeditor/plugins/filer/;
}
FAQs
Adds a button in the django-ckeditor to load images into the django-filer
We found that django-ckeditor-filer 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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.