WYSIWYG image uploads in Rails App

两盒软妹~` 提交于 2019-11-28 23:45:58

This is all dependent on the WYSIWYG's file upload API. From there, just build an ImagesController to handle requests from that API, use whatever system (Paperclip is good) to handle those files internally, and you should be good to go. You won't find a plug-and-play solution; you'll have to hand-roll it.

Turns out that, with more targeted Google searching, you can find a preexisting solution. Here's one for TinyMCE and Rails. You may, however, end up finding that it doesn't meet your needs, in which case I would not be surprised to find that creating your own solution would be simpler than you expect :)

You could try Bootsy. It's a WYSIWYG editor with image upload capability. Includes a (rather simple) image manager as well.

https://github.com/volmer/bootsy

There is an other solution for rails out there:

https://github.com/spohlenz/tinymce-rails

You can load it as gem and configure it via a yml file. And it comes with an extra language gem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!