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 1/3] 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" + ] +} From b9e66d326ce49dae8adbbd6d04e2ed3771501770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=B6string?= Date: Fri, 16 Oct 2015 10:41:01 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8edd77c..e3111e7 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,14 @@ WYSIWYG editors that produce HTML are often complex and buggy. Markdown solves t ## Quick start -### NPM +### Installation + +#### NPM SimpleMDE is available on [npm](https://www.npmjs.com/package/simplemde). ``` npm install simplemde --save ``` -### jsDelivery +#### 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 @@ -23,11 +25,12 @@ SimpleMDE is also available on [jsDelivr](http://www.jsdelivr.com/#!simplemde). ``` -### Bower +#### Bower SimpleMDE is also available via [Bower](http://bower.io/). ```console bower install simplemde-markdown-editor ``` +### Usage And then load SimpleMDE on the first textarea on a page From 6fcc1e640699ba5e59e52fbae34330cb2d419ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20K=C3=B6string?= Date: Fri, 16 Oct 2015 10:42:17 +0200 Subject: [PATCH 3/3] Update bower.json --- bower.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 5ee17e7..96c59d1 100644 --- a/bower.json +++ b/bower.json @@ -6,13 +6,14 @@ "Wes Cossik " ], "description": "A simple, beautiful, and embeddable JavaScript markdown editor.", - "main": ["js/simplemd.js", "css/simplemd.css"], + "main": ["dist/simplemde.min.js", "dist/simplemde.min.css"], "moduleType": [ "globals" ], "keywords": [ "wysiwyg", "markdown", + "editor", "js" ], "license": "MIT",