How to upload images with CarrierWave, Rails 6 and TinyMCE 5 without using 'tinymce-rails-imageupload' gem.
-
Add to gemfile and set tinymce-rails like it is describe at it documentation: gem "tinymce-rails", "~> 5.6"
-
create a model to hold assets, and a uploader on carrierwave
-
set a route post
-
create a controller to receive the image and save on carrierwave
-
add image or quickimage button to TinyMCE toolbarr
Thanks to: