<commit_before># Quilljs::Rails

[![Gem Version](https://badge.fury.io/rb/quilljs-rails.svg)](https://badge.fury.io/rb/quilljs-rails)
[![Gem](https://img.shields.io/gem/dt/quilljs-rails.svg)](https://rubygems.org/gems/quilljs-rails)

This gem adds a Quill rich editor to an existing text field or text area.
[Quill - Your powerful, rich text editor](http://quilljs.com/)
## Installation

Add this line to your application's Gemfile:

```ruby
gem 'quilljs-rails'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install quilljs-rails


## Usage

### From CDN(recommended)
Add these lines in the head section of application.html.erb

    <script src="https://cdn.quilljs.com/1.1.9/quill.js"></script>
    <link href="https://cdn.quilljs.com/1.1.9/quill.snow.css" rel="stylesheet">
Then add this line to your application.js file

```ruby
  //= require quill.global
```<commit_msg>Updated source<commit_after># Quilljs::Rails

[![Gem Version](https://badge.fury.io/rb/quilljs-rails.svg)](https://badge.fury.io/rb/quilljs-rails)
[![Gem](https://img.shields.io/gem/dt/quilljs-rails.svg)](https://rubygems.org/gems/quilljs-rails)

This gem adds a Quill rich editor to an existing text field or text area.
[Quill - Your powerful, rich text editor](http://quilljs.com/)
## Installation

Add this line to your application's Gemfile:

```ruby
gem 'quilljs-rails', :git => 'git://github.com/abhinavmathur/quilljs-rails.git'
```

And then execute:

    $ bundle


## Usage

### From CDN(recommended)
Add these lines in the head section of application.html.erb

    <script src="https://cdn.quilljs.com/1.1.9/quill.js"></script>
    <link href="https://cdn.quilljs.com/1.1.9/quill.snow.css" rel="stylesheet">
Then add this line to your application.js file

```ruby
  //= require quill.global
```
{'fraction_non_alphanumeric': 0.16648230088495575, 'fraction_numerical': 0.00663716814159292, 'mean_word_length': 4.081460674157303, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, 'https://': 12, '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': '2507900', 'n_tokens_mistral': 697, 'n_tokens_neox': 647, 'n_words': 149}