0.0
No commit activity in last 3 years
No release in over 3 years
Medium for the Godmin admin engine for Rails 4+
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

>= 0.9.7, ~> 0.9
 Project Readme

Godmin Medium

Gem Version

Godmin Medium is a MediumEditor component for Godmin that adds an f.medium_area to forms.

Installation

Add the gem to the application's Gemfile:

gem "godmin-medium"

Or to the admin engine's gemspec:

s.add_dependency "godmin-medium", "~> 0.1.0"

Require it in your app/assets/javascripts/application.js, just after the require godmin line:

//= require godmin
//= require godmin-medium

And finally, do the same with your app/assets/stylesheets/application.css:

*= require godmin
*= require godmin-medium

Usage

Use the medium area in your form like so:

<%= form_for @resource do |f| %>
  <%= f.text_field :title %>
  <%= f.medium_area :body, {
    buttons: ['bold', 'italic', 'underline', 'strikethrough', 'quote', 'anchor']
  } %>
  <%= f.submit %>
<% end %>

Contributors

https://github.com/varvet/godmin-medium/graphs/contributors

License

Godmin Medium is licensed under the MIT license. See the separate MIT-LICENSE file.