@wb-editor/vue

1.2.6 • Public • Published

wb-editor is a text editor imitates Weibo blog post publisher. This version is built for Vue2.

Install

npm install --save @wb-editor/vue

Quickstart

<template>
  <div class="editor-wrapper">
    <Editor v-model="text" :suggest-data-fetcher="suggestDataFetcher"></Editor>
  </div>
</template>

<script>
import Editor from "@wb-editor/vue"

export default {
  components: {
    Editor
  },
  data() {
    return {
      text: '',
      suggestDataFetcher: () => {
        return []
      }
    }
  }
}
</script>

Package Sidebar

Install

npm i @wb-editor/vue

Weekly Downloads

1

Version

1.2.6

License

BSD-3-Clause

Unpacked Size

80.8 kB

Total Files

6

Last publish

Collaborators

  • yaoshining