Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add new kinds of file or html like Shrine or Froala #12

Open
prem-prakash opened this issue Jun 9, 2017 · 1 comment
Open

How to add new kinds of file or html like Shrine or Froala #12

prem-prakash opened this issue Jun 9, 2017 · 1 comment

Comments

@prem-prakash
Copy link
Contributor

I was wondering how to add new file engines, like Shrine.
Or rich editors like Froala.

Could you provide a simple guide on which files I would have to work on?

@glebtv
Copy link
Member

glebtv commented Mar 6, 2018

Hello, admin form can be changed in this view file
https://github.com/rs-pro/rails_admin_settings/blob/master/app/views/rails_admin/main/_setting_value.html.haml
You can just override it in your app, but pull requests are welcome.

File engines are here
https://github.com/rs-pro/rails_admin_settings/blob/master/lib/rails_admin_settings/uploads.rb
https://github.com/rs-pro/rails_admin_settings/search?utf8=%E2%9C%93&q=file_uploads_engine&type=
and specs https://github.com/rs-pro/rails_admin_settings/blob/master/spec/paperclip_spec.rb here

Specs are run separately for each engine via env like so

UPLOADS=paperclip rspec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants