Skip to content

bemky/mdarea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDArea

MDArea is a textarea augmentation that adds a toolbar and keyboard shortcuts to any textarea to turn it into a lightweight markdown editor.

Demo and Installation Guide

Installation

npm install github:bemky/mdarea

Import and Initialize

import MDArea from 'mdarea';
    
new MDArea(document.querySelector('textarea'));

MDArea will also render it's own textarea if not given one. Instead it can take an object where each key is an attribute of the textarea.

import MDArea from 'mdarea';

const area = new MDArea({
    name: "building[details]",
    rows: 10,
    class: "uniformInput"
});
document.append(area.el);

Development

Docs are generated using Middleman

To run server

middleman server

To package:

middleman build

About

Add a lightweight markdown editor to your textarea https://bemky.github.io/mdarea

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published