0.0.5 • Published 4 years ago

qveditor v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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}
        ],
0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago