发布于 2013-05-06 03:09:03
您可以按字段配置wysihtml5,如下所示。例如,要启用HTML编辑器功能,请使用
RailsAdmin.config do |config|
config.model Team do
edit do
field :description, :text do
bootstrap_wysihtml5 true
bootstrap_wysihtml5_config_options :html => true
end
end
end
end这是添加到Rails_admin a while ago的,但他们不知何故忘记了更新维基。
发布于 2014-03-13 00:35:48
对于当前版本的Rails Admin,上述答案现在已过时。您应该使用以下语法来自定义编辑器:
field :description, :wysihtml5 do
config_options :html => true
end我已经更新了wiki
https://stackoverflow.com/questions/16271482
复制相似问题