vue-2-medium-editor

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i vue-2-medium-editor

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • smith64fx