I\'m trying to get CKEditor to work with Carrierwave and Cloudinary. So far, non-CKEditor enabled views with a regular file upload field are working perfectly with Carrierwa
Checkout my comment here
https://github.com/galetahub/ckeditor/issues/670#issuecomment-301218366
# encoding: utf-8
class CkeditorPictureUploader < CarrierWave::Uploader::Base
include Ckeditor::Backend::CarrierWave
include CarrierWave::MiniMagick
include Cloudinary::CarrierWave
process :extract_dimensions
[:extract_content_type, :extract_size, :extract_dimensions].each do |method|
define_method :"#{method}_with_cloudinary" do
send :"#{method}_without_cloudinary" if self.file.is_a? CarrierWave::SanitizedFile
{}
end
alias_method_chain method, :cloudinary
end
version :thumb do
process :resize_to_fill => [118, 100]
end
version :content do
process :resize_to_limit => [800, 800]
end
def extension_white_list
Ckeditor.image_file_types
end
end