Giter VIP home page Giter VIP logo

simplemde-angular's Introduction

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.

simplemde-angular's People

Contributors

hansottowirtz avatar robynshearsby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simplemde-angular's Issues

Update bower package

Can you please update the bower package to include the latest commits, among which is the fix for multiple instances?
Thanks.

disable preview when in editing mode

Hey Hanz,

We have implemented your package, thank you for that!

We encountered one problem we would like to fix.
Whenever you're writing something in the editor and for example you want to create a header, the editor already shows this in a bigger font-size. We only want to see the styling when in preview-mode.

could you please help me out?

screen shot 2018-02-22 at 10 31 41

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.