什么是 Rails 的最佳 WYSIWYG - Ruby on Rails 博客 [英] What is the best WYSIWYG for Rails - Ruby on Rails Blog

查看:40
本文介绍了什么是 Rails 的最佳 WYSIWYG - Ruby on Rails 博客的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

允许在 Ruby on Rails 博客的 body:text 字段中添加图像和嵌入视频的最佳方法是什么.

What is the best way to allow for the adding of images and embedding of video in the body:text field of a Ruby on Rails blog.

我知道我可以使用像 Paperclip 这样的附件将照片添加到记录中,但我想知道如何将图像/视频放入帖子的实际正文中.

I understand that I can use an attachment like Paperclip to add a photo to a record but I am wondering how to get images/vids into the actual body of the post.

推荐答案

我强烈建议您尝试 WYSIHAT.上面提到的编辑器最大的问题是它的体积庞大和难以定制"(能力).大多数这些编辑器中的糟糕代码是一个很大的问题.WYSIHAT 更像是 WYSIWYG 编辑器的框架.非常容易定制.易于配置.还有什么......它由37signals支持.我对 TinyMCE 的欣赏是它从 word 功能粘贴,它保留了布局.但如果不是因为那一项功能,我觉得其余的真的很笨重.

I strongly suggest you give WYSIHAT a try. The biggest problem with the editors mentioned above is its bulky size and "hard-to-customize"(ability). The bad code in most of these editors is a big turn-off. WYSIHAT is more like a framework for a WYSIWYG editor. Extremely easy to customize. Easy to configure. And what more.. Its backed by 37signals. What i would appreiciate about TinyMCE is its paste from word feature which preserves the layout. But if not for that one feature i find the rest really bulky.

请阅读这篇文章:http://37signals.com/svn/posts/1330-introducing-wysihat-an-eventually-better-open-source-wysiwyg-editor

使用所见即所得的教程:第 1 部分:http://jrmehle.com/2009/01/25/wysiwhat-wysihat-part-1/

Tutorial on using WYSIHAT: Part 1: http://jrmehle.com/2009/01/25/wysiwhat-wysihat-part-1/

第 2 部分:http://jrmehle.com/2009/02/13/wysiwhat-wysihat-part-2/

为了让您的生活更轻松,Jeff Kreeftmeijer (80beans.com) 为 37signals WYSIHAT 编辑器开发了一个很棒的 Rails 引擎:http://github.com/80beans/wysihat-engine

And to make your life even easier theres an awesome rails-engine developed by Jeff Kreeftmeijer (80beans.com) for the 37signals WYSIHAT editor: http://github.com/80beans/wysihat-engine

这是 Jeff Kreeftmeijer 的一篇文章:http://www.80beans.com/2009/10/01/wysihat-引擎/

And heres an article by Jeff Kreeftmeijer: http://www.80beans.com/2009/10/01/wysihat-engine/

这篇关于什么是 Rails 的最佳 WYSIWYG - Ruby on Rails 博客的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆