Skip to content

chemica/administrate-rich-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

administrate-rich-text

A plugin for Rails 7+ to allow the use of ActionText rich_text_area fields in Administrate.

ActionTexct is based on the Trix WYSIWYG editor.

The Administrate field is compatible with Rails Active Storage, so Rails will seamlessly handle attachment storage in your Wysiwyg field.

Install

Add administrate-rich-textto your Gemfile:

gem 'administrate-rich-text'

Install:

$ bundle install

Add javascript and CSS files to the asset pipeline and manifest:

$ rails g admin:actiontext_assets

Usage

Add an ActionText rich_text_area field to app/dashboards/foo_dashboard.rb:

ATTRIBUTE_TYPES = {
  bar: Field::RichTextArea
}.freeze

About

A Rails 7+ gem to use ActionText rich text fields in Administrate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published