我跟隨鏈接GitHub gem rich安裝CKEDITOR到rails_admin ,但我得到的錯誤:Unsupported field datatype: rich_editor
無法CKEDITOR整合rails_admin寶石(使用寶石豐富)
我的模型
edit do
field :title
field :description, :rich_editor do
config({
:insert_many => true
})
end
field :autho
field :book_type
end
如何解決這個錯誤?或者這是一個問題?
編輯: 我試了一下,它的工作
field :content, :text do
ckeditor do true end
end
嘿,我編輯了我的問題,它包含解決方案,希望它能幫助你! – duykhoa
謝謝!但是這隻會增加對ckeditor的支持,但不會爲富人提供支持? – Inza
我不知道如何在rails_admin中使用rick_editor,但實際上,rich_editor基於ckeditor基礎。所以請隨時使用它!https://github.com/bastiaanterhorst/rich – duykhoa