/vue-medium-editor

A MediumEditor directive for VueJS

Primary LanguageJavaScriptOtherNOASSERTION

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' custom-tag='h2' v-on:edit='applyTextEdit'>

Make sure you include the required CSS.

Roadmap

  • Create plugin for configuring options