Activeadmin::Redactor
Limited subsection of redactor options.
Currently no plans to make this feature complete (supporting all the options from the API).
Feel free to add options and submit a pull request if missing one you require.
Usage
Add it to your Gemfile
gem 'activeadmin-redactor'
Configure your ActiveAdmin Resource
ActiveAdmin.register Page do
redactorable
index do
redactorable_edit_icon
end
end
Optional View Port Customization
Stylesheets
Default setting is 'activeadmin-redactor'
redactorable stylesheets: ["fonts", "application"]
Javascripts
Default setting is 'jquery', 'jquery_ujs', 'activeadmin-redactor'
redactorable javascripts: ["textdirection.js"]
Layout
Default setting is 'redactor'
redactorable layout: ["foobar"]
Tempate
Default setting is 'redactor/editor'
redactorable template: ["redactor/editor"]
Optional Redactor Customization
Default setting is false
redactorable redactor: {focus: true}
Default setting is false
redactorable redactor: {iframe: true}
Default setting is false
redactorable redactor: {fullpage: true}
Default setting is none
redactorable redactor: {css: ['application', 'override']}
minHeight
Default setting is false
redactorable redactor: {minheight: 200}
imageUpload
Default setting is false
redactorable redactor: {imageupload: '/foo/bar/path'}
Default setting is none
redactorable redactor: {plugins: ['admin/fontfamily.js']}
Contributing
- Fork it ( https://github.com/[my-github-username]/activeadmin-redactor/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request