An open API service indexing awesome lists of open source software.

https://github.com/leezng/vue-text-editor

A Rich Textarea Component for Vue.js 2.x
https://github.com/leezng/vue-text-editor

editor quill textarea vue vue-component

Last synced: 5 months ago
JSON representation

A Rich Textarea Component for Vue.js 2.x

Awesome Lists containing this project

README

          

# vue-text-editor

A Vue.js 2.x project for textarea.

## Links

- [Demo](https://leezng.github.io/vue-text-editor)
- [Github](https://github.com/leezng/vue-text-editor)

## Installation

```js
npm install vue-text-editor
```

## Usage in entry

```js
import vueTextEditor from 'vue-text-editor'
import 'vue-text-editor/static/css/app.css'

Vue.use(vueTextEditor)
```

## Props

| Attribute | Description | Type | Default |
|---------- |-------- |---------- | ---------- |
| value | binding value | string | - |
| config | navbar items | array | - |

Here is the default config:

```js
allConfig = [ 'justifyLeft', 'justifyCenter', 'justifyRight', 'italic', 'bold', 'foreColor', 'backColor', 'fontName', 'fontSize', 'superscript', 'subscript', 'underline', 'strikeThrough', 'indent', 'outdent' ]
```

## Events

| Event Name | Description | Parameters |
|---------- |-------- |---------- |
| change | emit when value has changed | newValue |

Then in your vue template somewhere:

```html


...

```