SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
389 stars 253 forks source link

Errors when document save fails #116

Closed mattgibson closed 10 years ago

mattgibson commented 10 years ago

The Redactor upload error events do not fire because the controllers are not sending the right response. This change triggers the right error callbacks and makes any errors e.g. those caused by trying to upload the wrong file type, available in the json response.