vendor/assets/javascripts/summernote/plugin/hello/summernote-ext-hello.js in summernote-rails-0.8.10.0 vs vendor/assets/javascripts/summernote/plugin/hello/summernote-ext-hello.js in summernote-rails-0.8.12.0
- old
+ new
@@ -33,11 +33,11 @@
click: function() {
self.$panel.show();
self.$panel.hide(500);
// invoke insertText method with 'hello' on editor module.
context.invoke('editor.insertText', 'hello');
- }
+ },
});
// create jQuery object from button instance.
var $hello = button.render();
return $hello;
@@ -50,11 +50,11 @@
console.log('summernote initialized', we, e);
},
// This will be called when user releases a key on editable.
'summernote.keyup': function(we, e) {
console.log('summernote keyup', we, e);
- }
+ },
};
// This method will be called when editor is initialized by $('..').summernote();
// You can create elements for plugin
this.initialize = function() {
@@ -62,11 +62,11 @@
position: 'absolute',
width: 100,
height: 100,
left: '50%',
top: '50%',
- background: 'red'
+ background: 'red',
}).hide();
this.$panel.appendTo('body');
};
@@ -74,8 +74,8 @@
// You should remove elements on `initialize`.
this.destroy = function() {
this.$panel.remove();
this.$panel = null;
};
- }
+ },
});
}));