TinyMCE in new resource
I'm new in Ember.
I try to use TinyMCE in my project.
<script type="text/x-handlebars">
{{outlet}}
</script>
<script type="text/x-handlebars" id="index">
Hi
</script>
<script type="text/x-handlebars" id="editor">
<form method="post" class="tinymce">
<textarea></textarea>
</form>
</script>
My app.js:
App = Ember.Application.create({});
App.Router.map(function() {
this.resource('editor', function () {
tinymce.init({
selector: ".tinymce",
menubar:false,
statusbar: false,
});
});
});
If I open www.site.com/index.html#/editor1 TinyMCE works. If www.site.com1
and click link to editor TinyMCE doesn't work (simple textarea).
I tried this:
App.TransactionsView = Ember.View.extend({
templateName: 'editor',
didInsertElement: function(){
tinymce.init({
selector: ".tinymce",
menubar:false,
statusbar: false,
});
}
});
Nothing.
How can I do this? Thanks