简体   繁体   中英

How can I upload a image using CKEditor on rails_admin?

Is there any way to do that?

I found CKFinder but it seems it doesnt work on rails.

I got it working by adding the following to my rails_admin.rd in config/initailizers

   config.model Page do
  #   # Found associations:

  #   # Found columns:
  #     field :id, :integer 
       field :title, :string 
       field :menu, :string 
  #     field :parent_id, :integer 
       field :live, :boolean
       field :orderby, :integer 
       field :content, :text do
        ckeditor true
      end 
  #     field :created_at, :datetime 
  #     field :updated_at, :datetime 
  #   # Sections:
     list do; end
     export do; end
     show do; end
     edit do; end
     create do; end
     update do; end
   end

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM