The project is in a healthy, maintained state
Incorporate ActionText into Administrate to allow rich text editing in the dashboard.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 7.0.0
 Project Readme

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