Skip to content

samknight/gollum_editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gollum Editor

Text editor extracted from Gollum Wiki for Rails 3.1+

Install

Add this to your GEMFILE

gem 'gollum_editor'

rails g gollum_editor:install

Usage

Include the javascripts and stylesheets

<%= stylesheet_link_tag "gollum_editor/gollum" %>

<%= javascript_include_tag "gollum_editor/gollum" %>

Call it from your form builder

f.gollum_editor :body

or as a form helper

gollum_editor @object, :method