springload/quill

Name: quill

Owner: Springload

Description: A cross browser rich text editor with an API

Forked from: JoshBarr/quill

Created: 2015-12-03 21:35:37.0

Updated: 2015-12-03 21:35:39.0

Pushed: 2017-05-18 13:09:36.0

Homepage: http://quilljs.com

Size: 9882

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Quill Rich Text Editor Build Status

Webdriver Test Status

Quill is a modern rich text editor built for compatibility and extensibility. It was created by Jason Chen and Byron Milligan and open sourced by Salesforce.com.

To get started, check out the Quill Github Page or jump straight into the demo.

Quickstart

Instantiate a new Quill object with a css selector for the div that should become the editor.

 Create the toolbar container -->
 id="toolbar">
utton class="ql-bold">Bold</button>
utton class="ql-italic">Italic</button>
v>

 Create the editor container -->
 id="editor">
iv>Hello World!</div>
v>

 Include the Quill library -->
ipt src="http://cdn.quilljs.com/latest/quill.js"></script>

 Initialize Quill editor -->
ipt>
r editor = new Quill('#editor');
itor.addModule('toolbar', { container: '#toolbar' });
ript>
Downloading Quill

There are a number of ways to download the latest or versioned copy of Quill.

CDN
k rel="stylesheet" href="//cdn.quilljs.com/0.19.10/quill.snow.css" />
ipt src="//cdn.quilljs.com/0.19.10/quill.min.js"></script>
Local Development

Quill's source is in Coffeescript and utilizes Browserify to organize its files.

Installation
npm install -g grunt-cli
npm install
Building
grunt dist - compile and browserify
grunt server - starts a local server that will build and serve assets on the fly
Examples

With the local server (grunt server) running you can try out some minimal examples on:

Quill releases also contain these examples as built static files you can try without needing to run the local development server.

Testing
grunt test:unit - runs javascript test suite with Chrome
grunt test:e2e - runs end to end tests with Webdriver + Chrome
grunt test:coverage - run tests measuring coverage with Chrome

Tests are run by Karma and Protractor using Jasmine. Check out Gruntfile.coffee and config/grunt/ for more testing options.

Contributing
Community

Get help or stay up to date.

Bug Reports

Search through Github Issues to see if the bug has already been reported. If so, please comment with any additional information about the bug.

For new issues, create a new issue and tag with the appropriate browser tag. Include as much detail as possible such as:

The more details you provide, the more likely we or someone else will be able to find and fix the bug.

Feature Requests

We welcome feature requests. Please make sure they are within scope of Quill's goals and submit them in Github Issues tagged with the 'feature' tag. The more complete and compelling the request, the more likely it will be implemented. Garnering community support will help as well!

Pull Requests
  1. Please check to make sure your plans fall within Quill's scope (likely through Github Issues).
  2. Fork Quill
  3. Branch off of the 'develop' branch.
  4. Implement your changes.
  5. Submit a Pull Request.

Pull requests will not be accepted without adhering to the following:

  1. Conform to existing coding styles.
  2. New functionality are accompanied by tests.
  3. Serve a single atomic purpose (add one feature or fix one bug)
  4. Introduce only changes that further the PR's singular purpose (ex. do not tweak an unrelated config along with adding your feature).

Important: By issuing a Pull Request you agree to allow the project owners to license your work under the terms of the License.

Thanks

Swift, for providing the npm package name. If you're looking for his blogging engine see v0.1.5-1.

License

BSD 3-clause


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.