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: about 1 year ago
JSON representation
A plugin to use the Trix WYSIWYG editor within in Administrate.
- Host: GitHub
- URL: https://github.com/ianwalter/administrate-field-trix
- Owner: ianwalter
- License: isc
- Created: 2018-08-20T03:16:08.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-02T22:32:41.000Z (over 2 years ago)
- Last Synced: 2025-04-27T14:18:17.504Z (about 1 year ago)
- Topics: administrate, rails, trix
- Language: Ruby
- Homepage:
- Size: 12.7 KB
- Stars: 6
- Watchers: 2
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
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
```