simplemde-angular

WebJar for simplemde-angular

License

License

MIT
Categories

Categories

Github Development Tools Version Controls Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-hansottowirtz-simplemde-angular
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

simplemde-angular
WebJar for simplemde-angular
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hansottowirtz/simplemde-angular

Download github-com-hansottowirtz-simplemde-angular

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-hansottowirtz-simplemde-angular/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-hansottowirtz-simplemde-angular</artifactId>
    <version>0.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-hansottowirtz-simplemde-angular/
implementation 'org.webjars.bower:github-com-hansottowirtz-simplemde-angular:0.0.3'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-hansottowirtz-simplemde-angular/
implementation ("org.webjars.bower:github-com-hansottowirtz-simplemde-angular:0.0.3")
'org.webjars.bower:github-com-hansottowirtz-simplemde-angular:jar:0.0.3'
<dependency org="org.webjars.bower" name="github-com-hansottowirtz-simplemde-angular" rev="0.0.3">
  <artifact name="github-com-hansottowirtz-simplemde-angular" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-hansottowirtz-simplemde-angular', version='0.0.3')
)
libraryDependencies += "org.webjars.bower" % "github-com-hansottowirtz-simplemde-angular" % "0.0.3"
[org.webjars.bower/github-com-hansottowirtz-simplemde-angular "0.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower » simplemde jar [1.0.0,2)
org.webjars.bower : angular jar [1.3.0,2)

Project Modules

There are no modules declared in this project.

SimpleMDE for AngularJS

A simple directive to bind SimpleMDE to ng-model. If you want support for something, please open an issue!

Installation

bower install simplemde-angular --save
<script src="bower_components/simplemde/dist/simplemde.min.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/simplemde-angular/dist/simplemde-angular.js"></script>
var app = angular.module('app', ['simplemde']);

Usage

<textarea simplemde='{spellChecker: false}'></textarea>
<textarea simplemde='options'></textarea>
<textarea simplemde ng-model='text'></textarea>
app.directive('custom-simplemde', [function(){
  return {
    restrict: 'A',
    require: 'simplemde',
    link: function(scope, element, attrs, simplemde) {
      simplemde.get() // => SimpleMDE instance
      simplemde.rerenderPreview()
    }
  }
}]);

Contributing

git clone https://github.com/hansottowirtz/simplemde-angular.git
cd simplemde-angular
npm install
bower install
Make changes to src/index.js, then
gulp build

You can use bower link to use your package locally.

Versions

Version
0.0.3