<commit_before># RailsTinyMCE
-----------
This plugin based on ja_tiny_mce plugin, thanks to ilake for his great job, i have modified and updated this plugin for my project, now this plugin works with jrails(jquery), paperclip plugin.
 
1. Install rails_tiny_mce plugin using
--------------------- 
    ./script/plugin install git://github.com/sandipransing/rails_tiny_mce.git
 
    ./script/generate rails_tiny_mce_migration
    
    rake db:migrate
 
2. Install jrails(jquery) plugin using
----------------
    ./script/plugin install git://github.com/aaronchi/jrails.git
 
3. Install dependent plugins(if you didnt):
---------------------
    rake rails_tiny_mce:plugins
 
Above command will copy *paperclip, responds_to_parent, will_paginate* plugins to vendor/plugins directory.
 
- **paperclip** git://github.com/thoughtbot/paperclip.git
- **responds_to_parent** http://responds-to-parent.googlecode.com/svn/trunk
- **will_paginate** git://github.com/mislav/will_paginate.git
 
4. In your layout add following lines
-----------------------
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tiny_mce_if_used %>
    <%= tiny_mce if using_tiny_mce? %>
 
5. Inside controller class on top add following lines
-------------------------------------
    uses_tiny_mce(:options => AppConfig.default_mce_options, :only => [:new, :edit])
 
This AppConfig.default_mce_options is in *config/initializers/tiny_mce_plus_config.rb*, you could change the setting there
 
6. In your view add class mceEditor to text_area
-----------------------------
Then append the following to the text area you want to transform into a TinyMCE editor.
 
    :class => "mceEditor"
 
7. Install file lists
-------------------------
    rake rails_tiny_mce:install
 
will Install following files:
 
    app
      |-- controller
        |-- attachments_controller.rb
      |-- helpers
        |-- remote_link_renderer.rb
      |-- models
        |-- print.rb
        |-- video.rb
      |-- views
        |-- attachments
           |-- _show_attachment_list.html.erb
    config
      |-- initializers
        |-- tiny_mce_plus_config.rb
    public
      |-- images
        |-- tiny_mce
      |-- javascripts
        |-- tiny_mce
 
You may custom the config in tiny_mce_plus_config.rb.
 
## Attention Note:
---------------------
* Do not put *<p> </p>* around the textarea.
* If you are using *old will_paginate plugin*, maybe change the url_for to url_option in remote_link_renderer.rb
 
## Example use:

- Create CRUD for post
    ./script/generate scaffold post title:string text:description
 
- Run Migrations
    rake db:migrate
 
- Add following line to *posts_controller.rb*
    uses_tiny_mce(:options => AppConfig.default_mce_options, :only => [:new, :edit])
 
- Open /views/posts/new.html.erb and /views/posts/edit.html.erb
Modifiy following line
    <%= f.text_area :description %>
to
    <%= f.text_area :description, :class => "mceEditor" %>
 
## Contributors

1. <NAME>, Josh Software Private Limited

thats, all

any sugestions? **san2821 at gmail.com** or **sandip at joshsoftware.com** released under the MIT license<commit_msg>modified<commit_after># RailsTinyMCE
-----------
This plugin based on ja_tiny_mce plugin, thanks to ilake for his great job, i have modified and updated this plugin for my project, now this plugin works with jrails(jquery), paperclip plugin.
 
1. Install rails_tiny_mce plugin using
--------------------- 
    ./script/plugin install git://github.com/sandipransing/rails_tiny_mce.git
 
    ./script/generate rails_tiny_mce_migration
    
    rake db:migrate
 
2. Install jrails(jquery) plugin using
----------------
    ./script/plugin install git://github.com/aaronchi/jrails.git
 
3. Install dependent plugins(if you didnt):
---------------------
    rake rails_tiny_mce:plugins
 
Above command will copy *paperclip, responds_to_parent, will_paginate* plugins to vendor/plugins directory.
 
- **paperclip** git://github.com/thoughtbot/paperclip.git
- **responds_to_parent** http://responds-to-parent.googlecode.com/svn/trunk
- **will_paginate** git://github.com/mislav/will_paginate.git
 
4. In your layout add following lines
-----------------------
    <%= javascript_include_tag :defaults %>
    <%= javascript_include_tiny_mce_if_used %>
    <%= tiny_mce if using_tiny_mce? %>
 
5. Inside controller class on top add following lines
-------------------------------------
    uses_tiny_mce(:options => AppConfig.default_mce_options, :only => [:new, :edit])
 
This AppConfig.default_mce_options is in *config/initializers/tiny_mce_plus_config.rb*, you could change the setting there
 
6. In your view add class mceEditor to text_area
-----------------------------
Then append the following to the text area you want to transform into a TinyMCE editor.
 
    :class => "mceEditor"
 
7. Install file lists
-------------------------
    rake rails_tiny_mce:install
 
will Install following files:
 
    app
      |-- controller
        |-- attachments_controller.rb
      |-- helpers
        |-- remote_link_renderer.rb
      |-- models
        |-- print.rb
        |-- video.rb
      |-- views
        |-- attachments
           |-- _show_attachment_list.html.erb
    config
      |-- initializers
        |-- tiny_mce_plus_config.rb
    public
      |-- images
        |-- tiny_mce
      |-- javascripts
        |-- tiny_mce
 
You may custom the config in tiny_mce_plus_config.rb.
 
## Attention Note:
---------------------
* Do not put *\<p> <\/p>* around the textarea.
* If you are using *old will_paginate plugin*, maybe change the url_for to url_option in remote_link_renderer.rb
 
## Example use:

- Create CRUD for post
    
    ./script/generate scaffold post title:string text:description
 
- Run Migrations
    
    rake db:migrate
 
- Add following line to *posts_controller.rb*
    
    uses_tiny_mce(:options => AppConfig.default_mce_options, :only => [:new, :edit])
 
- Open /views/posts/new.html.erb and /views/posts/edit.html.erb

- Modifiy following line
    
    <%= f.text_area :description %>
to
    <%= f.text_area :description, :class => "mceEditor" %>
 
## Contributors

1. <NAME>, Josh Software Private Limited

thats, all

any sugestions? **san2821 at gmail.com** or **sandip at joshsoftware.com** released under the MIT license
{'fraction_non_alphanumeric': 0.15818759936406995, 'fraction_numerical': 0.0038155802861685214, 'mean_word_length': 2.46420704845815, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2027897', 'n_tokens_mistral': 1997, 'n_tokens_neox': 1865, 'n_words': 531}