<commit_before>= Wysiwyg

Simple WYSIWYG plugin with image upload support.
Based on LWRTE (http://code.google.com/p/lwrte/) 
and ocupload (http://code.google.com/p/ocupload/).

== Dependencies

Javascript:
- jQuery

Rails plugins
- paperclip
- responds_to_parent


= Installation

Install the plugin:

  script/plugin install git://github.com/agilitic/wysiwyg.git

Run the generator:
  script/generate w_picture

The generator will create 
- a controller: w_pictures_controller
- a w_picture route
- a model: w_pictures
- a migration file
- a wysiwyg directory in the public/ folder

= Usage

Tweak the w_picture model to suit your need (e.g., paperclip params).

Include the JS and CSS into your views:

  <%= stylesheet_link_tag '/wysiwyg/wysiwyg' %>
  <%= javascript_include_tag '/wysiwyg/wysiwyg' %>

To transform a textarea into a WYSIWYG:

  $(document).ready(function(){
	
	wysiwygSetup({
		textarea_id:'content_nl_editor',
		picture_action_url:'/wysiwyg_pictures',
		width:620
	});
	
	wysiwygSetup({
		textarea_id:'content_fr_editor',
		light_editor:true
		width:620
	});
  });

Options:
textarea_id: the DOM id of the textarea to decorate.
light_editor: display a wysiwyg with minimal user control (bold,underline,...)
picture_action_url: Pictures uploaded by the user will be sent at this paht. If you use the generated controller, use /wysiwyg_pictures
width: the width of the editor (default: 600px).

= Notes

- By default, the uploaded pictures are stored in /public/system/wysiwyg_pictures/.

Copyright (c) 2009 <NAME> & <NAME>, agilitic, released under the MIT license<commit_msg>readme updated<commit_after>= Wysiwyg

Simple WYSIWYG plugin with image upload support.
Based on [LWRTE](http://code.google.com/p/lwrte/) 
and [ocupload](http://code.google.com/p/ocupload/).

== Dependencies

Javascript:
- jQuery

Rails plugins
- paperclip
- responds_to_parent


= Installation

Install the plugin:

  script/plugin install git://github.com/agilitic/wysiwyg.git

Run the generator:
  script/generate w_picture

The generator will create 
- a controller: w_pictures_controller
- a w_picture route
- a model: w_pictures
- a migration file
- a wysiwyg directory in the public/ folder

= Usage

Tweak the w_picture model to suit your need (e.g., paperclip params).

Include the JS and CSS into your views:

  <%= stylesheet_link_tag '/wysiwyg/wysiwyg' %>
  <%= javascript_include_tag '/wysiwyg/wysiwyg' %>

To transform a textarea into a WYSIWYG:

  $(document).ready(function(){
	
	wysiwygSetup({
		textarea_id:'content_nl_editor',
		picture_action_url:'/wysiwyg_pictures',
		width:620
	});
	
	wysiwygSetup({
		textarea_id:'content_fr_editor',
		light_editor:true
		width:620
	});
  });

Options:
* textarea_id: the DOM id of the textarea to decorate.
* light_editor: display a wysiwyg with minimal user control (bold,underline,...)
* picture_action_url: Pictures uploaded by the user will be sent at this paht. If you use the generated controller, use /wysiwyg_pictures
* width: the width of the editor (default: 600px).

= Notes

- By default, the uploaded pictures are stored in /public/system/wysiwyg_pictures/.

Copyright (c) 2009 <NAME> & <NAME>, agilitic, released under the MIT license
{'fraction_non_alphanumeric': 0.09803309397439901, 'fraction_numerical': 0.008117389946924758, 'mean_word_length': 4.393939393939394, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1138321', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1064, 'n_words': 330}