1.0.1 • Published 7 years ago

vue-2-medium-editor v1.0.1

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

vue2-medium-editor

A medium-editor component for Vue2. For Vue1 checkout branch 1.0.

Standard - JavaScript Style Guide

Installation & usage

# bash
npm i --save vue2-medium-editor


# app.js
import editor from 'vue2-medium-editor'
import Vue from 'vue'

new Vue {
  ...
  components: {
    'medium-editor': editor
  }
}

# index.html
<medium-editor :text='myText' :options='{ disableReturn: false }' custom-tag='h2' v-on:edit='applyTextEdit'>

You can pass all options available from here: https://github.com/yabwe/medium-editor/blob/master/OPTIONS.md

Make sure you include the required CSS.

Roadmap

  • Create plugin for configuring options
1.0.1

7 years ago