MeccaMedialight / quillwrap

Module for converting textareas into Quill-powered editors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

quillwrap

A simple module for for converting textareas into Quill-powered editors.

Example use

<script src="jquery.js"></script>
<script src="quill.js"></script>
<script src="quillwrap.js"></script>
<script>
$(document).ready(function () {
    quillwrap.autoinit();
});
</script>

Or if you are using AMD modules...

var quillWrap = require('quillwrap');
quillWrap.autoinit();

The autoinit() method automatically converts textareas with class "rte" into Quill editors. The original textareas are hidden, but their values will update automatically (so you should be able to submit the form without having to perform any extra steps).

Additional demo is here: https://github.com/luke-mml/quillwrap-demo

About

Module for converting textareas into Quill-powered editors


Languages

Language:JavaScript 73.9%Language:HTML 26.1%