WYSIWYG editor for Rails with copy package integration

I am looking for a way to integrate the WYSIWYG editor into my rails application, so it will use the Paperclip download to load images / files.

I want this: A user can use the WYSIWYG field to create some rich text. They can load the image into this text, but the image will be well stored in the database (I hope something like Paperclip) instead of just being dumped into a folder on the server.

Can this be done? I spent a lot of time trawling the network to solve this problem. The closest I came a very convenient plugin: http://github.com/galetahub/rails-ckeditor

However, the instructions are a bit vague, and I took care of this through implementation.

I don’t care which WYSIWYG editor I use, my requirements are very simple. I am also not completely configured for Paperclip, so if there is another way (using attachment_fu), I will also be happy to consider this.

Edit: I am also happy if I can integrate the WYSIWYG editor using Paperclip and just store the images in the file system. It does not need to be loaded into the database. Does anyone take it now?

+3
source share
1 answer

This question has been answered:

Loading WYSIWYG Images into a Rails Application

Thanks @ Matchu

+2
source

Source: https://habr.com/ru/post/1732804/


All Articles