Post date: 2013/10/14 3:27:17
CKeditorはjavascriptで書かれたプラグインです。
1。RAILSでは、public/javascripts以下にJavascriptのプラグインを入れます。ckeditorがそれです。
2。CKeditorで、oembedプラグイン(https://github.com/w8tcha/CKEditor-oEmbed-Pluginを使うには、
oembedを ckeditor/plugins以下に入れます。
ckeditor/config.js に情報を追加します。
3。public/javascripts/load_ckeditor.jsが hoboで CKeditorを読み込むスクリプトです。メニュボタンの定義
はここなので、oembedのボタンを追加します
oembedを使うことで You tubeのようなマルチメディアを ALBのドキュメントの中で見ることができるようになります。