vendor/assets/javascripts/summernote/plugin/summernote-ext-hello.js in summernote-rails-0.6.7.0 vs vendor/assets/javascripts/summernote/plugin/summernote-ext-hello.js in summernote-rails-0.6.9.0

- old
+ new

@@ -24,32 +24,32 @@ * @property {Function} buttons.hello function to make button * @property {Function} buttons.helloDropdown function to make button * @property {Function} buttons.helloImage function to make button */ buttons: { // buttons - hello: function () { + hello: function (lang, options) { - return tmpl.iconButton('fa fa-header', { + return tmpl.iconButton(options.iconPrefix + 'header', { event : 'hello', title: 'hello', hide: true }); }, - helloDropdown: function () { + helloDropdown: function (lang, options) { var list = '<li><a data-event="helloDropdown" href="#" data-value="summernote">summernote</a></li>'; list += '<li><a data-event="helloDropdown" href="#" data-value="codemirror">Code Mirror</a></li>'; var dropdown = '<ul class="dropdown-menu">' + list + '</ul>'; - return tmpl.iconButton('fa fa-header', { + return tmpl.iconButton(options.iconPrefix + 'header', { title: 'hello', hide: true, dropdown : dropdown }); }, - helloImage : function () { - return tmpl.iconButton('fa fa-file-image-o', { + helloImage : function (lang, options) { + return tmpl.iconButton(options.iconPrefix + 'file-image-o', { event : 'helloImage', title: 'helloImage', hide: true }); }