@xpf0000/vue-ckeditor4

1.0.3 • Public • Published

vue ckeditor4扩展

安装

npm install @xpf0000/vue-ckeditor4

使用

// 引用
import Vue from 'vue'
import Base from '@xpf0000/vue-ckeditor4'
Vue.use(Base, {
    imageChoose: (ckeditor) => {
        ckeditor.insertHtml('<img src="' + img + '"/>')
    }, 
})

<template>
  <div id="app">
    <Ckeditor v-model="value"></Ckeditor>
  </div>
</template>

<script>
  export default {
    name: 'App',
    data() {
      return {
        value: ''
      }
    },
    mounted() {},
    methods: {}
  }
</script>

/@xpf0000/vue-ckeditor4/

    Package Sidebar

    Install

    npm i @xpf0000/vue-ckeditor4

    Weekly Downloads

    0

    Version

    1.0.3

    License

    none

    Unpacked Size

    5.94 kB

    Total Files

    5

    Last publish

    Collaborators

    • xpf0000