Skip to content

BaggersIO/angular-lightweight-markdown-editor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular lightweight markdown editor

angular-lightweight-markdown-editor is extremely light weight editor (v0.0.3 12kb) for markdown. It doesn't use any fancy text editors but just that basic textarea. This means you can add it to your project without fear of huge transfer sizes.

Requires only angular.js and angular-sanitize.js libraries.

Editor displays preview if showdown.js is included in to the project.

screenshot

Usage

Install using bower

bower install angular-lightweight-markdown-editor

Include CSS and JS to project

<script src="angular-lightweight-markdown-editor/dist/angular-lightweight-markdown-editor.min.js"></script>

Add dependecy to your angular application

angular.module("myapp", [
    "ngSanitize",
    "angular-lightweight-markdown-editor"
]);

Include editor into your html

<markdown-editor></markdown-editor>

See demo for example code

Parameters

Parameter Description Default
ng-model Data model to use in textarea
text-preview Button text for preview Preview
text-propose-text Prompt text to as link text Please provide link text
text-propose-link Prompt text asking for link url Please provide link URL
name Default textarea parameter
required Default textarea parameter
minlength Default textarea parameter
maxlength Default textarea parameter
placeholder Default textarea parameter
selectionDirection Default textarea parameter
selectionStart Default textarea parameter
 selectionEnd Default textarea parameter
spellcheck Default textarea parameter

About

Visual markdown editor for angular

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 43.6%
  • JavaScript 28.3%
  • CSS 28.1%