# gjs-quill

> Grapesjs Quill

Latest version **1.0.1** (published 2022-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gjs-quill
pnpm add gjs-quill
yarn add gjs-quill
bun add gjs-quill
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-06-10 |
| First published | 2022-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 43.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | ju99ernaut |
| Keywords | grapesjs, plugin |

## Links

- npm: https://www.npmjs.com/package/gjs-quill
- Repository: https://github.com/Ju99ernaut/gjs-quill
- Homepage: https://github.com/Ju99ernaut/gjs-quill#readme
- Issues: https://github.com/Ju99ernaut/gjs-quill/issues
- npm.io page: https://npm.io/package/gjs-quill

## Recent versions

- 1.0.1 (latest) — 2022-06-10

## README

# Grapesjs Quill

> It is important that you include `https://cdn.quilljs.com/1.3.7/quill.bubble.css` in your final output so that quill styles are applied outside the editor too.

Quill RTE intergration for `grapesjs`.

Sponsered by:

 [![templateto.com](https://cdn.dorik.com/605a2d8f4235520011809929/61d819e8cb11310011d0bb96/images/logo-wide_dark_bg-white_trimmed_lg-txt_l9gbqgx8.png)](https://templateto.com)

[DEMO](https://astounding-meerkat-d5a1ea.netlify.app)

> Setup as shown in `index.html`

### HTML
```html
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
<script src="https://unpkg.com/grapesjs"></script>
<script src="https://unpkg.com/gjs-quill"></script>

<div id="gjs"></div>
```

### JS
```js
const editor = grapesjs.init({
	container: '#gjs',
  height: '100%',
  fromElement: true,
  storageManager: false,
  plugins: ['gjs-quill'],
});
```

### CSS
```css
body, html {
  margin: 0;
  height: 100%;
}
```


## Summary

* Plugin name: `gjs-quill`



## Options

| Option | Description | Default |
|-|-|-
| `quillOpts` | Options for configuring quill | `{}` |
| `clipboard` | Use custom clipboard | `true` |



## Download

* CDN
  * `https://unpkg.com/gjs-quill`
* NPM
  * `npm i gjs-quill`
* GIT
  * `git clone https://github.com/Ju99ernaut/gjs-quill.git`



## Usage

Directly in the browser
```html
<link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/grapesjs"></script>
<script src="path/to/gjs-quill.min.js"></script>

<div id="gjs"></div>

<script type="text/javascript">
  var editor = grapesjs.init({
      container: '#gjs',
      // ...
      plugins: ['gjs-quill'],
      pluginsOpts: {
        'gjs-quill': { /* options */ }
      }
  });
</script>
```

Modern javascript
```js
import grapesjs from 'grapesjs';
import plugin from 'gjs-quill';
import 'grapesjs/dist/css/grapes.min.css';

const editor = grapesjs.init({
  container : '#gjs',
  // ...
  plugins: [plugin],
  pluginsOpts: {
    [plugin]: { /* options */ }
  }
  // or
  plugins: [
    editor => plugin(editor, { /* options */ }),
  ],
});
```



## Development

Clone the repository

```sh
$ git clone https://github.com/Ju99ernaut/gjs-quill.git
$ cd gjs-quill
```

Install dependencies

```sh
$ npm i
```

Start the dev server

```sh
$ npm start
```

Build the source

```sh
$ npm run build
```



## License

MIT

---
_Source: https://npm.io/package/gjs-quill · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
