Skip to content
Browse files

Include form builder example in README

  • Loading branch information...
1 parent 02d9755 commit e04fd2e295f728cc5b4daf7464e0d13fc380f9d6 @spohlenz committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 README.md
View
6 README.md
@@ -76,7 +76,11 @@ or (2) with jQuery integration:
For each textarea that you want to use with TinyMCE, add the "tinymce" class and ensure it has a unique ID:
- <%= text_area_tag :editor, "", :class => "tinymce", :rows => 40, :cols => 120 %>
+ <%= text_area_tag :content, "", :class => "tinymce", :rows => 40, :cols => 120 %>
+
+or if you are using Rails' form builders:
+
+ <%= f.text_area :content, :class => "tinymce", :rows => 40, :cols => 120 %>
Then invoke the `tinymce` helper to initialize TinyMCE:

0 comments on commit e04fd2e

Please sign in to comment.
Something went wrong with that request. Please try again.