我已经安装了这个宝石,很好用。当我尝试使用:工具栏=> "mini“时,工具栏中的项目数与完整项的数量相同。我是不是应该少点工具栏上的按钮?
这是我在其中一个编辑版本中的代码:
<%= f.input :content, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'mini'} } %>谢谢
发布于 2014-01-30 12:59:15
以下是答案:回答
您需要在ckeditor/config.js中定义这个工具栏:
config.toolbar_mini = [
{ name: 'links', items: [ 'Link', 'Unlink', 'Anchor' ] }
];干杯
https://stackoverflow.com/questions/21445707
复制相似问题