Skip to main content

django-ckeditor-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'
    }
}

Совместимость с djangocms-text-ckeditor

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/;
}

История изменений

1.0.4 (2017-01-06)

  • При создании в filer каталога изображений “ckeditor” его владельцем становится первый суперпользователь;

  • Изменена иконка;

  • Исправлена пара меток в английской локализации.

1.2.0 (2019-07-28)

  • Поддержка Django 2.1.

Metadata

Release files for django-ckeditor-filer 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-ckeditor-filer 1.2.0
File Size Uploaded Provenance Actions
django-ckeditor-filer-1.2.0.tar.gz 8.9 kB Without provenance Details for django-ckeditor-filer-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-ckeditor-filer 1.2.0
File Interpreter ABI Platform Actions
django_ckeditor_filer-1.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_ckeditor_filer-1.2.0-py2.py3-none-any.whl

Total release size: 21.5 kB

Release files / django-ckeditor-filer-1.2.0.tar.gz

Download URL django-ckeditor-filer-1.2.0.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9880c466e8b3cc4e89d17ebb99814f7272410fb899679073c348a6f830e07034
BLAKE2b-256 checksum
How to use checksums
b9e75b07592c981a621a8427574142554316247c428cfe79e87695ac28dd239c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

Release files / django_ckeditor_filer-1.2.0-py2.py3-none-any.whl

Download URL django_ckeditor_filer-1.2.0-py2.py3-none-any.whl
Size 12.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c94ca19960fb335193e4d049b3c119d8443f409d989ad5df3dc44e12ac99bb69
BLAKE2b-256 checksum
How to use checksums
1df6e1df1ac2a75cc9c0face16bf5da7b984a837a91ff8d17b0002025c7f1f54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

Security for django-ckeditor-filer 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page