/* https://github.com/DiemenDesign/summernote-cleaner */ /* MODIFIED VERSION */ (function (factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { module.exports = factory(require('jquery')); } else { factory(window.jQuery); } } (function ($) { $.extend(true, $.summernote.lang, { 'en-US': { cleaner: { tooltip: 'Чистка', not: 'Текст очищен!!!', limitText: 'Текст', limitHTML: 'HTML' } } }); $.extend($.summernote.options, { cleaner: { action: 'both', // both|button|paste 'button' only cleans via toolbar button, 'paste' only clean when pasting content, both does both options. newline: '', // Summernote's default is to use '


' notActive: true, // ADDED !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! notStyle: 'position:absolute;top:0;left:0;right:0', icon: '', keepHtml: true, //Remove all Html formats keepOnlyTags: ['

', '
', '