Skip to content

Repository files navigation

Active Admin Editor

This is a wysiyg html editor for the Active Admin interface using wysihtml5.

screenshot

Installation

# Gemfilegem'active_admin_editor'

Then add the following stylesheet to your application manifest:

# app/assets/stylesheets/application.css//=requireactive_admin/editor/wysiwyg

And the following to your active_admin.css.scss and active_admin.js:

# app/assets/javascripts/active_admin.js//=requireactive_admin/editor
# app/assets/javascripts/active_admin.css.scss@import'active_admin/editor';

Now install the migrations:

$ rake active_admin_editor:install:migrations
$ rake db:migrate

And finally install the wysiwyg css file:

$ rails g active_admin:editor

Usage

This gem provides you with a custom formtastic input called :html_editor to build out an html editor. All you have to do is specify the :as option for your inputs.

Example

ActiveAdmin.registerPagedoformdo |f|
f.inputsdof.input:titlef.input:content,as: :html_editorendf.buttonsendend

About

Rich text editor for Active Admin using wysihtml5.

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages