Vue Component for Markdown Editing and Preview using Vuetify.js

vuetify-markdown-editor is a Vue.js component for markdown editing and previewing using Vuetify.js and markdown-it.

vue markdown editor wysiwyg, vuetify markdown editor, best vue markdown editor, markdown editor example, nuxt markdown editor, preview markdown vscode, markdown editor online

Features

  • TypeScript support
  • Single and Embedded Mode
  • Editor-only mode and Editor-Preview
  • Code highlighting
  • Choose emoji
  • math formula (see markdown-it-texmath)
  • Upload and preview images (to use the uploaded image in markdown, use the file name as a link)
  • Mermaid outline view (use code block with a mermaid)

Markdown Editor Based On The Ace And Bootstrap Editor | codeparlMarkdown

How to make use of it:

Install and download:

yarn add @nuxtjs/vuetify -D
# OR
npm install @nuxtjs/vuetify -D

This package can be used in the Node.js module:

<template>
  <v-app>
    <Editor
      mode="preview"
      ref="editor"
      hint="Hint"
      :outline="false"
      :render-config="renderConfig"
      v-model="text"
    />
  </v-app>
</template>
<script>
import { Editor } from "vuetify-markdown-editor";
import { VApp } from 'vuetify/lib';

export default {
  name: "app",
  components: {
    Editor,
    VApp
  },
  data() {
    return {
      text: "",
      renderConfig: {
        // Mermaid config
        mermaid: {
          theme: "dark"
        }
      }
    };
  },
  mounted() {
    // Access properties or methods using $refs
    // this.$refs.editor.focus();
    // this.$refs.editor.upload();

    // Dark theme
    this.$vuetify.theme.dark = true;
  }
};
</script>

Props

PropDefaultDescription
value''String that binds to the textarea
mode'preview'Possible value 'editor''preview' or 'viewer'. When set to 'editor' or 'viewer', only the editor or viewer is displayed, while 'preview' mode displays both.
renderConfigundefinedOverride default configurations
outlinefalseThe border will be outlined instead of card style
colorundefinedThe outline and icon’s color
nativeEmojifalseUse native emoji instead of pictures
emojitrueEnable emoji input
emojiSet"apple"Supported emoji sets: 'apple', 'google', 'twitter', 'facebook'
imagetrueEnable image upload
fileTarget'/'Image upload target uri
fileFilterfile => file.type.startsWith('image')Allow only specific files. Return true to allow, false to reject
baseUrl'/'The baseUrl for uploaded images. Must end with a slash (mainly used in viewer mode)

Editing and Previewing Markdown, vuetify-markdown-editor Plugin/Github, markdown preview enhanced, github markdown preview


See Demo And Download

Official Website(DCsunset): Click Here

This superior jQuery/javascript plugin is developed by DCsunset. For extra Advanced Usages, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…