Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ianwalter/administrate-field-trix

A plugin to use the Trix WYSIWYG editor within in Administrate.
https://github.com/ianwalter/administrate-field-trix

administrate rails trix

Last synced: 2 months ago
JSON representation

A plugin to use the Trix WYSIWYG editor within in Administrate.

Awesome Lists containing this project

README

        

# administrate-field-trix
> A plugin to use the [Trix](https://trix-editor.org) WYSIWYG editor within in [Administrate](https://github.com/thoughtbot/administrate).

**Forked from [headwayio/administrate-field-trix](https://github.com/headwayio/administrate-field-trix)**

## Install

Add [trix-rails](https://github.com/kylefox/trix/) and `administrate-field-trix`
to your `Gemfile`:

```ruby
gem 'trix-rails', require: 'trix'
gem 'administrate-field-trix'
```

Install:

```bash
$ bundle install
```

## Usage

Add a Trix field to `app/dashboards/foo_dashboard.rb`:

```ruby
ATTRIBUTE_TYPES = {
bar: Field::Trix
}.freeze
```

If you're using the Rails asset pipeline, add the following to `app/assets/config/manifest.js`:

```js
//= link administrate-field-trix/application.css
//= link administrate-field-trix/application.js
```