Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/eldoy/vedit

Vue Editor Component based on Quill.js
https://github.com/eldoy/vedit

drag-and-drop editor quill resize upload video vue

Last synced: 6 days ago
JSON representation

Vue Editor Component based on Quill.js

Awesome Lists containing this project

README

        

# Vue editor based on Quill.js

This build has built in support for:
* Upload image
* Drag and drop image as base64
* Insert Vimeo and Youtube video
* Resize and align video and image
* Copy paste text
* H2 and H3 tags
* Bold, italic, underlined, strikethrough
* Quotes, code, lists, text alignment

### INSTALL
```npm i vedit``` or ```yarn add vedit```

### USAGE
How to use from an example Editor.vue file:
```html







import Client from '@/lib/client'
import Vedit from 'vedit'

export default {
name: 'Editor',
components: { Vedit },
created () {
// Example upload client
this.client = new Client({ url: 'http://example.com/upload' })
},
methods: {
// Everytime you write something you can read the value of the editor here
change (value) {
console.log('CHANGE:', value)
},
// The upload handler for the client should be a function that takes input files
// and returns a promise that resolves with file URLs.
upload(urls) {
console.log('UPLOADED:', urls)
}
},
data () {
return {
client: null,
content: '<p><img src="https://7ino.s3.amazonaws.com/1538111025472_umbrellas-small.jpg">Hello</p>'
}
}
}

```
MIT Licensed. Enjoy!