mueditor

A simple vue2.x markdown editor
1,485 765
Install
npm install mueditor
Latest Version:1.1.9
Vue:2
License:MIT
Last Updated:Mar 4, 2023
Links: GitHub  ·  npm
Maintainer: ginuim

Mueditor

A simple Vue2.x markdown editor

  • fast
  • simple
  • lightweight

Links

live demo

Install

npm install mueditor

Quick Start

<template>
  <div class="publish-box">
      <Mueditor
        :sync-content="syncPreview"
        :default-content="defaultContent"
        local-storage-name="mue"
        >
      </Mueditor>
      <div class="publish-preview" v-html="html"></div>
    </div>
</template>

<script>
import Mueditor from 'mueditor'
export default {
  components: {
    Mueditor
  },
  data: function () {
    return {
      defaultContent: 'Mueditor demo',
      html: ''
    }
  },
  methods: {
    syncPreview: function (data) {
      this.html = data.html
    }
  }
}
</script>

<style>
.publish-box {
  width: 40rem;
  margin: 0 auto;
}
.publish-preview {
  font-family: monospace, monospace;
}
@media all and (max-width: 768px) {
  .publish-box {
    width: 100%;
  }
}
</style>

Related Packages

@smooth-markdown/core

smooth-markdown is a pluggable markdown editor for vue.js 3. it is easy to exten...

2,249
vue3-easymde

Vue3 component wrapper for EasyMDE. Written in Typescript. Build by Rollup.

70,747
vue-markdown-editor

A Vue.js markdown editor component.

9,573 11
lotion-flame

🧴 Lotion An open-source Notion UI built with Vue 3. Try demo

2,772
@octarin/lolo

🧴 Lotion An open-source Notion UI built with Vue 3. Try demo

1,870

Version History

Version Released Vue License
1.1.9 ^2.1.0 MIT
1.1.8 ^2.1.0 MIT
1.1.7 MIT
1.1.6 MIT
1.1.5 ^2.1.0