0.0.7 • Published 6 years ago

vue-wishper-editor v0.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

wishper-editor

A Vue easy to use editor

This editor used in my blog, so I will continuous support it.

And this editor referenced to Tmublr editor.

I like the concise editor, so I build it.

If you want to use this editor and meet some problem, you can come to the project github and write a issues.

Simple Demo

I will wirte the live demo soon.

Installation

use the npm to install this package

$ npm i vue-wishper-editor -S

download in Github

git clone https://github.com/JefferyLiang/vue-wishper-editor.git vue-wishper-editor

Usage

require the package in your vue project

// base
const Vue = require('vue')
const WishperEditor = require('vue-wishper-editor')

// es6
import Vue from 'vue'
import WishperEditor from 'vue-wishper-editor'

Vue.use(WishperEditor)

use in vue component

<template>
  <div class="container">
    ...
    <w-editor v-model="editor_content"></w-editor>
    ...
  </div>
</template>

<script>
export default {
  data () {
    return {
      editor_content: ''
    }
  }
}
</script>

Config

Set the editor font size like this

<w-editor :font-size="15"></w-editor>
<!-- now the editor font size is 15px -->

Set the editor font color like this

<w-editor :font-color="black"></w-editor>
<!-- now the font color is black -->
<!-- of course, you can use the rgb in this -->

Set the input placeholder like this

<w-editor :placeholder="输入内容"></w-editor>
0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago