Created
May 6, 2015 08:13
-
-
Save Akii/4d7626d0f22f8f1c5d90 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
init: function() { | |
this._super(); | |
// Showdown is available | |
/* jshint ignore:start */ | |
this.set('showdownConverter', new Showdown.converter()); | |
/* jshint ignore:end */ | |
}, | |
whereYouWouldInitJqueryStuff: function() { | |
//this.$('.yourInput').tagsInput(); | |
}.on('didInsertElement') | |
// striped some unimportant code here, basically this component shows a preview of rendered markdown | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment