Comments (3)
No, there isn't yet such a thing. I'd be happy to add hooks if you need them, or additional attributes to the changelist, but I don't like image pickers too much in rich text editors (long version: https://feincms-django-cms.readthedocs.io/en/latest/advanced/designdecisions.html#about-rich-text-editors and https://feincms3.readthedocs.io/en/latest/ref/cleansing.html )
from django-cabinet.
So I worked on this a bit because we have a project where such an integration is desired (not by me!)
You'll have to include the cabinet_ckeditor.admin.CKEditorFilebrowserMixin
mixin in your own ModelAdmin
subclass for files (if you're not using a custom file model, try unregistering the admin class and re-registering it with your own version).
Next, add the filebrowserBrowseUrl
to your CKEditor configuration with the following value: {% url "admin:cabinet_file_changelist" %}?_popup=1&_to_field=id
Uploading files from the file picker does not work, but browsing and selecting files does.
from django-cabinet.
The CKEditor support is the default since 0.7.7, so you don't have to do anything special now except setting the filebrowserBrowseUrl
.
Documentation forthcoming, hopefully.
from django-cabinet.
Related Issues (10)
- Make django-versatileimagefield optional HOT 1
- CKEditor file browser integration doesnโt work HOT 2
- Upload form problems in Safari
- Django wants to add a new migration in django 3.2 HOT 4
- Inconsistency: file.setter uses inspect.getmro despite the presence of FILE_FIELDS. Using the latter would be preferred obviously.
- Validation for file size HOT 1
- Does this work with django storage to connect to S3? HOT 2
- Allow automagically selecting the last visited folder
- Update to latest release at GitHub HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-cabinet.