All Projects → janwirth → vue-medium-editor

janwirth / vue-medium-editor

Licence: MIT license
✍️ A MediumEditor component for Vue 2. Demo:

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
HTML
75241 projects

Projects that are alternatives of or similar to vue-medium-editor

ember-medium-editor
📝 medium-editor for Ember Apps
Stars: ✭ 18 (-95.54%)
Mutual labels:  medium-editor
vuejs-medium-editor
A medium like text editor for vue js WYSIWYG
Stars: ✭ 112 (-72.28%)
Mutual labels:  medium-editor
medium-editor-handsontable
📊 Handsontable extension for MediumEditor
Stars: ✭ 50 (-87.62%)
Mutual labels:  medium-editor
Medium Draft
📝 A medium like Rich Text Editor built on draft-js with a focus on keyboard shortcuts.
Stars: ✭ 1,705 (+322.03%)
Mutual labels:  medium-editor
Dante
Just another Medium wysiwyg editor clone
Stars: ✭ 1,647 (+307.67%)
Mutual labels:  medium-editor
Medium Editor
Medium.com WYSIWYG editor clone. Uses contenteditable API to implement a rich text solution.
Stars: ✭ 15,421 (+3717.08%)
Mutual labels:  medium-editor
typester
✒️ A WYSIWYG that gives you predictable and clean HTML
Stars: ✭ 29 (-92.82%)
Mutual labels:  medium-editor
code-medium
Browser extension that simplifies writing code in Medium posts. Quickly create and edit Github Gists without leaving the editor
Stars: ✭ 59 (-85.4%)
Mutual labels:  medium-editor

vue2-medium-editor

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

Standard - JavaScript Style Guide

Installation

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

Usage

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

Full usage example at github.com/FranzSkuffka/vue-medium-editor/tree/gh-pages

A list of available options can be found in the documentation of MediumEditor. Optionally you may use the standalone builds from dist which have medium-editor.js included.

Make sure you include the required CSS.

Custom buttons and extensions

To create extensions for the MediumEditor you will need the original MediumEditor object, which you can get like this:

var HighlightButton = VueMediumEditor.MediumEditor.Extension.extend({
    // ...
});

See Extensions section of the MediumEditor's wiki for details.

Bundling & Minification

To generate the standalone bundle

npm i --save-dev
npm run prepublish

Known Issues

If you encounter issues with the link button and the events it emits, please refer to yabwe/medium-editor#1153.

Contributors

Anyone else who opened an Issue or PR!

Thank you! 🎉

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].