开发者

WMD + Rails: how to?

I was looking at http://wmd-editor.com/ but couldn't figure out how to use this in rails. I am pretty new. If som开发者_如何学编程eone can lead me to the right direction that would be very appreiciated. Thanks!


You shouldn't do much.

Just make a form with a <textarea> for the attribute you want to edit with WMD, include wmd.js like this javascript_include_tag wmd.js

Taken from WMD readme.txt:

By default, WMD will turn the first textarea on your page into an editor. You can modify this behavior with the wmd-ignore class, described below.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜