Im developing a system with emberjs and it requires a lot of jquery plugins. For instance: I just need to make wysiwyg editor from div.
$('.summernote').summernote();
As I know I need to put this code like this:
import Ember from 'ember';
export default Ember.View.extend(Ember.TargetActionSupport, {
templateName: 'views/block-view',
didInsertElement: function() {
$('.summernote').summernote(); //here
}
});
So I need to create new view just for insert one line of code. Is it right way?
Aucun commentaire:
Enregistrer un commentaire