qveditor

0.0.5 • Public • Published

QVEditor

Simple yet feature rich Quill based text editor for Vue.js
Best Suited for all kinds of text related formatting

Preview

preview image

Install

npm install QVEditor --save

API & Usage

without SSR(server side rendering)
<template>
    <div>
        <q-v-editor :value="htmlcontent" @onHtmlChange="onHtmlChange"></q-v-editor>
        
        <h2>Generated html</h2>
        <div v-html="generatedhtml">
        </div>
        
    </div>
</template>

<script>
    import QVEditor from "qveditor";
    import Vue from 'vue'
    Vue.use(QVEditor)
    export default {
        name: "example",
        methods:{
          onHtmlChange(data){
              this.generatedhtml=data
          }  
        },
        data(){
            return{
                htmlcontent:"<p>hello</p>",
                generatedhtml:""
            }
        }
    }
</script>

<style scoped>

</style>
with SSR using Nuxt.js

step 1:create qveditor.js in plugins directory with following content

    import Vue from 'vue'
    import QVEditor from 'qveditor'
    Vue.use(QVEditor)

step 2: in plugins array of nuxt.config.js add the following content

        plugins: [
        {src:"@/plugins/qveditor",ssr:false}
        ],

Readme

Keywords

none

Package Sidebar

Install

npm i qveditor

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

519 kB

Total Files

3

Last publish

Collaborators

  • shivanshtalwar0