vendor/assets/javascripts/summernote/summernote-bs4.js in summernote-rails-0.8.9.1 vs vendor/assets/javascripts/summernote/summernote-bs4.js in summernote-rails-0.8.9.2
- old
+ new
@@ -166,18 +166,17 @@
$node.addClass(direction);
if (options.hideArrow) {
$node.find('.arrow').hide();
}
});
-var checkbox = renderer.create('<label class="custom-control custom-checkbox"></label>', function ($node, options) {
+var checkbox = renderer.create('<label class="form-check"></label>', function ($node, options) {
if (options.id) {
$node.attr('for', options.id);
}
$node.html([
- ' <input type="checkbox" class="custom-control-input"' + (options.id ? ' id="' + options.id + '"' : ''),
+ ' <input type="checkbox" class="form-check-input"' + (options.id ? ' id="' + options.id + '"' : ''),
(options.checked ? ' checked' : '') + '/>',
- ' <span class="custom-control-indicator"></span>',
- ' <span class="custom-control-description">' + (options.text ? options.text : '') + '</span>',
+ ' <span class="form-check-label">' + (options.text ? options.text : '') + '</span>',
'</label>'
].join(''));
});
var icon = function (iconClassName, tagName) {
tagName = tagName || 'i';