From 153f31b2faeac720c751307752c7dc2df09cbb1b Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Tue, 27 Sep 2016 14:08:45 +0200 Subject: [PATCH] Updating minified JavaScript files --- .../install/files/js/3rdParty/redactor2/plugins/combined.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js index 5217e9398c..f6ab5f23d7 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js @@ -63,7 +63,7 @@ $.Redactor.prototype.WoltLabSize=function(){"use strict";return{init:function(){ // WoltLabSmiley.js $.Redactor.prototype.WoltLabSmiley=function(){"use strict";var t=0;return{init:function(){require(["EventHandler"],function(t){t.add("com.woltlab.wcf.redactor2","insertSmiley_"+this.$element[0].id,this.WoltLabSmiley._insert.bind(this))}.bind(this))},_insert:function(i){if(!this.WoltLabSource.isActive()){this.buffer.set();var e="wscSmiley_"+this.uuid+"_"+t++,r=i.img.cloneNode();r.id=e,this.insert.html(r.outerHTML),r=elById(e),r.outerHTML=r.outerHTML}}}}; // WoltLabSource.js -$.Redactor.prototype.WoltLabSource=function(){"use strict";return{init:function(){this.source.setCaretOnShow=function(){},this.source.setCaretOnHide=function(t){return t};var t=this.source.hide;this.source.hide=function(){t.call(this),setTimeout(this.focus.end.bind(this),100),this.placeholder.enable()}.bind(this);var e=this.source.$textarea[0];this.$element[0].parentNode.insertBefore(e,this.$element[0]);var i=this.source.show;this.source.show=function(){var t=this.$editor[0].offsetHeight;i.call(this),e.style.setProperty("height",Math.ceil(t)+"px",""),e.style.setProperty("display","block",""),e.selectionStart=e.selectionEnd=e.value.length}.bind(this),WCF.System.Event.addListener("com.woltlab.wcf.redactor2","validate_"+this.$element[0].id,function(t){e.clientHeight&&(t.api.throwError(this.$element[0],WCF.Language.get("wcf.editor.source.error.active")),t.valid=!1)}.bind(this))},isActive:function(){return"none"===this.$editor[0].style.getPropertyValue("display")}}}; +$.Redactor.prototype.WoltLabSource=function(){"use strict";return{init:function(){this.source.setCaretOnShow=function(){},this.source.setCaretOnHide=function(e){return e};var e=this.source.hide;this.source.hide=function(){e.call(this),setTimeout(this.focus.end.bind(this),100),this.placeholder.enable()}.bind(this);var t=this.source.$textarea[0];this.$element[0].parentNode.insertBefore(t,this.$element[0]);var i=this.source.show;this.source.show=function(){var e=this.$editor[0].offsetHeight;i.call(this),t.style.setProperty("height",Math.ceil(e)+"px",""),t.style.setProperty("display","block",""),t.value=this.WoltLabSource.format(t.value),t.selectionStart=t.selectionEnd=t.value.length}.bind(this),WCF.System.Event.addListener("com.woltlab.wcf.redactor2","validate_"+this.$element[0].id,function(e){t.clientHeight&&(e.api.throwError(this.$element[0],WCF.Language.get("wcf.editor.source.error.active")),e.valid=!1)}.bind(this))},isActive:function(){return"none"===this.$editor[0].style.getPropertyValue("display")},format:function(e){var t=this.block.tags.join("|").toLowerCase();return t+="|ul|ol|li",e=e.replace(new RegExp("<("+t+")([^>]*)>s*","g"),"<$1$2>\n "),e=e.replace(new RegExp("s*","g"),"\n"),e=e.replace(/\s*
  • /g,"\n
  • "),e=e.replace(/<\/li>\s*/g,"
  • \n"),e=e.replace(/
  • ([\s\S]*?)<\/li>/g,function(e,t){var i=t.trim().split("\n");return"
  • \n "+i.join("\n ")+"\n
  • "}),e=e.replace(/\s*<\/p>\s*/g,"\n

    \n"),e=e.replace(/

    \s*
    \s*<\/p>/g,"


    "),e.replace(/^\s+/,"")}}}; // WoltLabSpoiler.js $.Redactor.prototype.WoltLabSpoiler=function(){"use strict";return{init:function(){this.WoltLabBlock.register("woltlab-spoiler",!0),this.opts.activeButtonsStates["woltlab-spoiler"]="woltlabSpoiler",require(["WoltLabSuite/Core/Ui/Redactor/Spoiler"],function(t){new t(this)}.bind(this))}}}; // WoltLabUtils.js -- 2.20.1