diff --git a/modules/backend/formwidgets/richeditor/assets/js/build-min.js b/modules/backend/formwidgets/richeditor/assets/js/build-min.js index 20be48b9a..8d8952799 100755 --- a/modules/backend/formwidgets/richeditor/assets/js/build-min.js +++ b/modules/backend/formwidgets/richeditor/assets/js/build-min.js @@ -1704,10 +1704,7 @@ linkProtocol="";if(text.length>this.opts.linkSize) text=text.substring(0,this.opts.linkSize)+'...';text=decodeURIComponent(text);var regexp=new RegExp('('+href.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+')\\b','g');html=html.replace(regexp,''+$.trim(text)+'');}} return html;},after:function() {this.observe.load();this.code.sync();}}}};$(window).on('load.tools.redactor',function() -{$('[data-tools="redactor"]').redactor();});Redactor.prototype.init.prototype=Redactor.prototype;})(jQuery);(function($){'use strict';window.RedactorPlugins=window.RedactorPlugins||{};var Cleanup=function(redactor){this.redactor=redactor -this.init()} -Cleanup.prototype={init:function(){this.removeEmptyParagraphs()},removeEmptyParagraphs:function(){this.redactor.$editor.find('p').filter(function(){return!$.trim($(this).text())}).remove()}} -window.RedactorPlugins.cleanup=function(){return{init:function(){this.cleanup=new Cleanup(this)}}}}(jQuery));(function($){'use strict';window.RedactorPlugins=window.RedactorPlugins||{};window.RedactorPlugins.fullscreen=function(){return{init:function(){this.fullscreen.isOpen=false +{$('[data-tools="redactor"]').redactor();});Redactor.prototype.init.prototype=Redactor.prototype;})(jQuery);(function($){'use strict';window.RedactorPlugins=window.RedactorPlugins||{};window.RedactorPlugins.fullscreen=function(){return{init:function(){this.fullscreen.isOpen=false var button=this.button.add('fullscreen','FullScreen') this.button.addCallback(button,$.proxy(this.fullscreen.toggle,this)) button.addClass('redactor_btn_fullscreen').removeClass('redactor-btn-image') diff --git a/modules/backend/formwidgets/richeditor/assets/js/build.js b/modules/backend/formwidgets/richeditor/assets/js/build.js index e37adbc1e..46ce5f6cc 100755 --- a/modules/backend/formwidgets/richeditor/assets/js/build.js +++ b/modules/backend/formwidgets/richeditor/assets/js/build.js @@ -8,7 +8,6 @@ * =require ../vendor/redactor/redactor.js -=require plugin.cleanup.js =require plugin.fullscreen.js =require plugin.figure.js =require plugin.table.js diff --git a/modules/backend/formwidgets/richeditor/assets/js/plugin.cleanup.js b/modules/backend/formwidgets/richeditor/assets/js/plugin.cleanup.js deleted file mode 100755 index dbd6525d9..000000000 --- a/modules/backend/formwidgets/richeditor/assets/js/plugin.cleanup.js +++ /dev/null @@ -1,37 +0,0 @@ -(function ($) { - 'use strict'; - - window.RedactorPlugins = window.RedactorPlugins || {}; - - var Cleanup = function (redactor) { - this.redactor = redactor - this.init() - } - - Cleanup.prototype = { - - init: function () { - this.removeEmptyParagraphs() - }, - - /* - * Removes empty P tags - */ - removeEmptyParagraphs: function () { - this.redactor.$editor - .find('p') - .filter(function() { return !$.trim($(this).text()) }) - .remove() - } - - } - - window.RedactorPlugins.cleanup = function() { - return { - init: function () { - this.cleanup = new Cleanup(this) - } - } - } - -}(jQuery)); \ No newline at end of file