1
我是Ember中的新成员。新资源中的TinyMCE
我尝试在我的项目中使用TinyMCE。
<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>
我app.js:
App = Ember.Application.create({});
App.Router.map(function() {
this.resource('editor', function() {
tinymce.init({
selector: ".tinymce",
menubar:false,
statusbar: false,
});
});
});
如果我打开www.site.com/index.html#/editor1 TinyMCE作品。如果www.site.com并单击链接到编辑器TinyMCE不起作用(简单文本区)。
我尝试这样做:
App.TransactionsView = Ember.View.extend({
templateName: 'editor',
didInsertElement: function(){
tinymce.init({
selector: ".tinymce",
menubar:false,
statusbar: false,
});
}
});
没有。
我该怎么做?