Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete uploaded images? #80

Open
Allanon29 opened this issue Aug 14, 2013 · 1 comment
Open

How to delete uploaded images? #80

Allanon29 opened this issue Aug 14, 2013 · 1 comment

Comments

@Allanon29
Copy link

After I've uploaded an image through the editor I can select and insert it again into the same or into another post from the choose image menu. But how can I delete an image for example from an admin interface like Active Admin? Or from the image list pop-up window as a regular user?

@ItalianChef
Copy link

Redactor itself does not provide means to upload and manage pictures or files. Rather, Redactor provides interfaces and requires to implement a handler that handles the selected files for upload. The redactor-rails Gem provides such uploader via CarrierWave gem.

I would recommend to override the two controllers, PictureController and DocumentController, that are provided by the gem and implement the required show and destroy actions. Alternatively, an own controller could be designed and implemented which handles the records for the Redactor assets. Check the schema.rb file for redactor_assets table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants