vue2-wangeditor

1.0.3 • Public • Published

vue2-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 / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Electron
Electron
IE11, Edge last 2 versions last 2 versions last 2 versions last 2 versions

📦 Install

npm install vue2-wangeditor
yarn add vue2-wangeditor

🔨 Usage

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

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

📘 API

Property Description Type Default
value(v-model) current value number
disabled disable the input boolean false
placeholder placeholder string

📖 more Property

📙 events

Events Name Description Arguments
change The 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/vue2-wangeditor.git
$ cd vue2-wangeditor
$ yarn install
$ yarn serve

🤝 Contributing PRs Welcome

Package Sidebar

Install

npm i vue2-wangeditor

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

4.8 MB

Total Files

10

Last publish

Collaborators

  • zomixi