1.0.1 • Published 2 years ago

vc-wangeditor v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vc-wangeditor

✨ Features

  • support v-model(prop: 'value', event: 'change')
  • support props to config editor

🖥 Environment Support

  • Modern browsers and Internet Explorer 11 (with polyfills)
IE / EdgeFirefoxChromeSafariElectron
IE11, Edgelast 2 versionslast 2 versionslast 2 versionslast 2 versions

📦 Install

npm install vc-wangeditor
yarn add vc-wangeditor

🔨 Usage

<Vue2WangEditor v-model="content" />
import Vue2WangEditor from "vc-wangeditor";

export default {
  components: {
    Vue2WangEditor,
  },
  data() {
    return {
      content: "<p>hello world</p>",
    };
  },
};

📘 API

PropertyDescriptionTypeDefault
value(v-model)current valuenumber
disableddisable the inputbooleanfalse
placeholderplaceholderstring

📖 more Property

📙 events

Events NameDescriptionArguments
changeThe callback triggered when the value is changed.function(value: string)

TODO

  • xss filter
  • custom image upload

⌨️ Development

Use Gitpod, a free online dev environment for GitHub.

Open in Gitpod

Or clone locally:

$ git clone https://github.com/zomixi/vc-wangeditor.git
$ cd vc-wangeditor
$ yarn install
$ yarn serve

🤝 Contributing PRs Welcome