Skip to content

Commit

Permalink
Merge branch 'master' of github.com:galdomedia/tinymce_fm
Browse files Browse the repository at this point in the history
  • Loading branch information
mlitwiniuk committed Jan 15, 2012
2 parents 788f7c0 + 23f077c commit 4a858b1
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.rdoc
Expand Up @@ -14,11 +14,21 @@ If you want, you can also manage multimedia files (ie. videos), but then you wil

gem 'tinymce_fm', :git=>"git://github.com/galdomedia/tinymce_fm.git"

2. Add include line in controller that will manage images ( controller Pages for example )
2. Add Engine to routes.rb file:

Freshmag::Application.routes.draw do
# TinymceFm Engine
mount TinymceFm::Engine => "/tinymce_fm"

# ...
root :to=>"welcome#index"
end

3. Add include line in controller that will manage images ( controller Pages for example )

include TinymceFm::Filemanager

2. In layout (best in page <head> section) add:
4. In layout (best in page <head> section) add:

<%= tinymce_javascript_tag "pages" %>

Expand All @@ -32,10 +42,8 @@ If you want, you can also manage multimedia files (ie. videos), but then you wil

<%= tinymce_tag "some_field_name", "some field content" %>


or use builder method:


<%= f.tinymce :some_field_name %>

== Basic Usage
Expand Down

0 comments on commit 4a858b1

Please sign in to comment.