Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ianwalter/administrate-field-trix
- Owner: ianwalter
- License: isc
- Created: 2018-08-20T03:16:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-02T22:32:41.000Z (10 months ago)
- Last Synced: 2024-05-01T20:34:49.930Z (8 months ago)
- Topics: administrate, rails, trix
- Language: Ruby
- Homepage:
- Size: 12.7 KB
- Stars: 6
- Watchers: 3
- 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
```