Code Monkey home page Code Monkey logo

Comments (3)

matthiask avatar matthiask commented on August 18, 2024

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.

matthiask avatar matthiask commented on August 18, 2024

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.

matthiask avatar matthiask commented on August 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.