aurelia-quill-plugin

A Quil wrapper for Aurelia.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
aurelia-quill-plugin
0.1.65 years ago7 years agoMinified + gzip package size for aurelia-quill-plugin in KB

Readme

aurelia-skeleton-plugin

Install

```shell npm i quill aurelia-quill-plugin ```

Bundle (Aurelia-CLI - requirejs)

```json {
"name": "quill",
"path": "../node_modules/quill/dist",
"main": "quill",
"resources": [
"quill.snow.css"
]
}, {
"name": "aurelia-quill-plugin",
"path": "../node_modules/aurelia-quill-plugin/dist/amd",
"main": "index"
} ```

Register

```js aurelia.use.plugin('aurelia-quill-plugin'); ``` for webpack: ```js import 'quill/dist/quill.snow.css'; aurelia.use.plugin(PLATFORM.moduleName('aurelia-quill-plugin')); ```

Usage

```html ```

Options

For global options pass a quil config object when registering the plugin: ```js let options = {
debug: 'info',
modules: {
toolbar: '#toolbar'
},
placeholder: 'Compose an epic...',
readOnly: true
}; aurelia.use.plugin('aurelia-quill-plugin', options); ``` If you want per-instance options use the bindable options property: ```html options.bind="{ placeholder: 'Compose an epic...' }"> ```