All Projects → surmon-china → Vue Quill Editor

surmon-china / Vue Quill Editor

Licence: mit
🍡@quilljs editor component for @vuejs

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to Vue Quill Editor

Vue Codemirror
⌨️ @codemirror component for @vuejs
Stars: ✭ 2,115 (-69.23%)
Mutual labels:  text-editor, vue-components, vue-component, vuejs2, vue2, vue-plugin, vue-resource, vue-directive, web-editor
Vue Awesome Swiper
🏆 Swiper component for @vuejs
Stars: ✭ 12,072 (+75.62%)
Mutual labels:  vue-components, vue-component, vuejs2, vue2, vue-plugin, vue-resource, vue-directive
vue-drag-zone
Drag Zone component for @vuejs
Stars: ✭ 127 (-98.15%)
Mutual labels:  vue-components, vue2, vue-plugin, vue-component, vue-resource, vue-directive
Vue Touch Ripple
👆 Touch ripple component for @vuejs
Stars: ✭ 443 (-93.56%)
Mutual labels:  vue-components, vue-component, vuejs2, vue2, vue-plugin, vue-resource
Vue Video Player
🎞 @videojs component for @vuejs
Stars: ✭ 4,026 (-41.43%)
Mutual labels:  vue-components, vue-component, vuejs2, vue2, vue-resource
Vue Toastr
Vuejs Toast : Plugin and Component Capability.
Stars: ✭ 93 (-98.65%)
Mutual labels:  vue-component, vuejs2, vue2, vue-plugin
Xcui
🍴 A Vue.js 2.x desktop components colletion
Stars: ✭ 88 (-98.72%)
Mutual labels:  vue-components, vue-component, vuejs2, vue2
Vue Particles
Vue.js component for particles backgrounds ✨
Stars: ✭ 1,220 (-82.25%)
Mutual labels:  vue-components, vue-component, vuejs2, vue2
vue-notification-bell
Vue.js notification bell component.
Stars: ✭ 64 (-99.07%)
Mutual labels:  vuejs2, vue-components, vue2, vue-component
Quasar
Quasar Framework - Build high-performance VueJS user interfaces in record time
Stars: ✭ 20,090 (+192.26%)
Mutual labels:  vue-components, vue-component, vuejs2, vue2
Vue Form Json Schema
Create forms using JSON schema. Bring your components!
Stars: ✭ 253 (-96.32%)
Mutual labels:  vue-components, vue-component, vuejs2, vue2
Vue2 Editor
A text editor using Vue.js and Quill
Stars: ✭ 2,316 (-66.31%)
Mutual labels:  editor, quill, quilljs, vue2
Vuejs Component Style Guide
Vue.js Component Style Guide
Stars: ✭ 2,796 (-59.32%)
Mutual labels:  vue-components, vuejs2, vue2
Tui
This is a high quanlity components library for VUE
Stars: ✭ 258 (-96.25%)
Mutual labels:  vue-components, vuejs2, vue2
Vue Snotify
Vuejs 2 Notification Center
Stars: ✭ 755 (-89.02%)
Mutual labels:  vue-components, vuejs2, vue2
Vue Star Rating
⭐️ A simple, highly customisable star rating component for Vue 2.x. / 3.x
Stars: ✭ 509 (-92.6%)
Mutual labels:  vue-component, vuejs2, vue2
vue2
【🔥Vue.js资讯📚】目前web前端开发非常火爆的框架;定时更新,欢迎 Star 一下。
Stars: ✭ 415 (-93.96%)
Mutual labels:  vue-components, vue2, vue-plugin
Vue2 Calendar
vue 2.x calendar component
Stars: ✭ 477 (-93.06%)
Mutual labels:  vue-component, vuejs2, vue2
Vuelayers
Web map Vue components with the power of OpenLayers
Stars: ✭ 532 (-92.26%)
Mutual labels:  vue-components, vuejs2, vue2
Draggable Vue Directive
Vue2 directive that handles drag & drop
Stars: ✭ 286 (-95.84%)
Mutual labels:  vuejs2, vue2, vue-directive

GitHub stars Build Status GitHub issues GitHub forks GitHub last commit license

NPM NPM

Vue-Quill-Editor

Quill editor component for Vue.

基于 Quill、适用于 Vue 的富文本编辑器,支持服务端渲染和单页应用。

Example

Install

NPM

npm install vue-quill-editor --save

# or
yarn add vue-quill-editor

CDN

<link rel="stylesheet" href="path/to/quill.core.css"/>
<link rel="stylesheet" href="path/to/quill.snow.css"/>
<link rel="stylesheet" href="path/to/quill.bubble.css"/>
<script type="text/javascript" src="path/to/quill.js"></script>
<script type="text/javascript" src="path/to/vue.min.js"></script>
<script type="text/javascript" src="path/to/dist/vue-quill-editor.js"></script>
<script type="text/javascript">
  Vue.use(window.VueQuillEditor)
</script>

Mount

Mount with global

import Vue from 'vue'
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

Vue.use(VueQuillEditor, /* { default global options } */)

Mount with local component

import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

import { quillEditor } from 'vue-quill-editor'

export default {
  components: {
    quillEditor
  }
}

Mount with SSR

View Nuxt.js example code.

Register Quill module

import Quill from 'quill'
import yourQuillModule from '../yourModulePath/yourQuillModule.js'
Quill.register('modules/yourQuillModule', yourQuillModule)

// Vue app...

Component

<template>
  <!-- Two-way Data-Binding -->
  <quill-editor
    ref="myQuillEditor"
    v-model="content"
    :options="editorOption"
    @blur="onEditorBlur($event)"
    @focus="onEditorFocus($event)"
    @ready="onEditorReady($event)"
  />

  <!-- Or manually control the data synchronization -->
  <quill-editor
    :content="content"
    :options="editorOption"
    @change="onEditorChange($event)"
  />
</template>

<script>
  // You can also register Quill modules in the component
  import Quill from 'quill'
  import someModule from '../yourModulePath/someQuillModule.js'
  Quill.register('modules/someModule', someModule)
  
  export default {
    data () {
      return {
        content: '<h2>I am Example</h2>',
        editorOption: {
          // Some Quill options...
        }
      }
    },
    methods: {
      onEditorBlur(quill) {
        console.log('editor blur!', quill)
      },
      onEditorFocus(quill) {
        console.log('editor focus!', quill)
      },
      onEditorReady(quill) {
        console.log('editor ready!', quill)
      },
      onEditorChange({ quill, html, text }) {
        console.log('editor change!', quill, html, text)
        this.content = html
      }
    },
    computed: {
      editor() {
        return this.$refs.myQuillEditor.quill
      }
    },
    mounted() {
      console.log('this is current quill instance object', this.editor)
    }
  }
</script>

Projects using vue-quill-editor

Issues

Quill Modules

Quill

Quill API document

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].