From bad108966dfdbf71ad35283e4344592eab6752de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=B6string?= Date: Fri, 16 Oct 2015 10:39:07 +0200 Subject: [PATCH] added bower support --- README.md | 12 ++++++++++-- bower.json | 26 ++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 bower.json diff --git a/README.md b/README.md index 64ee943..8edd77c 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,13 @@ A drop-in JavaScript textarea replacement for writing beautiful and understandab WYSIWYG editors that produce HTML are often complex and buggy. Markdown solves this problem in many ways, plus Markdown can be rendered natively on more platforms than HTML. However, Markdown is not a syntax that an average user will be familiar with, nor is it visually clear while editing. In otherwords, for an unfamiliar user, the syntax they write will make little sense until they click the preview button. SimpleMDE has been designed to bridge this gap for non-technical users who are less familiar with or just learning Markdown syntax. ## Quick start + +### NPM SimpleMDE is available on [npm](https://www.npmjs.com/package/simplemde). ``` npm install simplemde --save ``` - +### jsDelivery SimpleMDE is also available on [jsDelivr](http://www.jsdelivr.com/#!simplemde). *Please note, jsDelivr may take a few days to update to the latest release.* ```HTML @@ -21,6 +23,12 @@ SimpleMDE is also available on [jsDelivr](http://www.jsdelivr.com/#!simplemde). ``` +### Bower +SimpleMDE is also available via [Bower](http://bower.io/). +```console +bower install simplemde-markdown-editor +``` + And then load SimpleMDE on the first textarea on a page ```HTML @@ -110,7 +118,7 @@ var simplemde = new SimpleMDE({ setTimeout(function(){ preview.innerHTML = customMarkdownParser(plainText); }, 250); - + return "Loading..."; } renderingConfig: { diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..5ee17e7 --- /dev/null +++ b/bower.json @@ -0,0 +1,26 @@ +{ + "name": "simplemde-markdown-editor", + "version": "1.7.4", + "homepage": "https://github.com/NextStepWebs/simplemde-markdown-editor", + "authors": [ + "Wes Cossik " + ], + "description": "A simple, beautiful, and embeddable JavaScript markdown editor.", + "main": ["js/simplemd.js", "css/simplemd.css"], + "moduleType": [ + "globals" + ], + "keywords": [ + "wysiwyg", + "markdown", + "js" + ], + "license": "MIT", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ] +}