开发者

WYSIWYG editor for Rails with Paperclip Integration [duplicate]

This question already has answers here: WYSIWYG image 开发者_如何学运维uploads in Rails App (3 answers) Closed 8 years ago.

I'm looking for a way of integrating a WYSIWYG editor into my rails app so it will use Paperclip for Image / File uploads.

What I want is this: User can use a WYSIWYG field to create some rich text. They can upload an image into this text but the image will be stored nicely in a DB (hopefully using something like Paperclip) instead of just being dumped in a folder on the server.

Can this be done? I've spent a fair while trawling the net for solutions to this problem. The closest I've come is a very handy looking plugin: http://github.com/galetahub/rails-ckeditor

However, the instructions are a bit vague and I got bogged down partway through the implementation.

I don't care what WYSIWYG editor I use, my requirements are very simple. I'm also not totally set on Paperclip so if there's another way (using attachment_fu) I'm happy to consider that too.

Edit: I'm also happy if I can integrate a WYSIWYG editor with Paperclip and just store the images in the file system. It doesn't have to be uploaded to the DB. Any takers now?


This question was answered here:

WYSIWYG image uploads in Rails App

Thanks @Matchu

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜