From 43f4e97008150a2e6c9d8baf34a739989115a880 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Fri, 6 Jan 2017 12:01:47 +0100 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 25116c2b25..5f1ea4a5e3 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.removeAttribute("id"),this.caret.after(r),r.outerHTML=r.outerHTML}}}}; // WoltLabSource.js -$.Redactor.prototype.WoltLabSource=function(){"use strict";return{init:function(){function e(e){elBySelAll(".icon, .fa",e,function(e){var t=e.className.split(" ");t=t.filter(function(e){return"fa"===e||"icon"===e?!1:e.match(/^icon\d{2}$/)?!1:e.match(/^fa-[a-z\-]+$/)?!1:!0}),e.className=t.join(" "),""===e.className.trim()&&""===e.innerHTML&&elRemove(e)})}var t=function(e){elBySelAll("woltlab-quote",e,function(e){if(2===e.childElementCount&&"P"===e.children[0].nodeName&&"P"===e.children[1].nodeName){var t=e.children[0];if(""===t.innerHTML.trim()){var n=e.children[1];"
"===n.innerHTML.trim()&&e.removeChild(t)}}})};this.source.setCaretOnShow=function(){},this.source.setCaretOnHide=function(e){return e};var n=this.source.hide;this.source.hide=function(){var i=$("
").html(this.source.$textarea.val());e(i[0]),this.source.$textarea.val(i[0].innerHTML),n.call(this),setTimeout(function(){this.focus.end(),t(this.core.editor()[0])}.bind(this),100),this.placeholder.enable()}.bind(this);var i=this.source.$textarea[0];this.$element[0].parentNode.insertBefore(i,this.$element[0]);var r=this.source.show;this.source.show=function(){var e=this.$editor[0].offsetHeight;r.call(this),i.style.setProperty("height",Math.ceil(e)+"px",""),i.style.setProperty("display","block","");var n=elCreate("div");n.innerHTML=i.value,t(n),i.value=this.WoltLabSource.format(n.innerHTML),i.selectionStart=i.selectionEnd=i.value.length}.bind(this),WCF.System.Event.addListener("com.woltlab.wcf.redactor2","validate_"+this.$element[0].id,function(e){i.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=["ul","ol","li"];this.block.tags.forEach(function(e){t.push(e)}),t=t.join("|").toLowerCase();var n=["p","li"],i="[^'\">]*(?:(?:\"[^\"]*\"|'[^']*')[^'\">]*)*",r=[];e=e.replace(new RegExp("[sS]*?","g"),function(e){return r.push(e),"@@@WCF_PRE_BACKUP_"+(r.length-1)+"@@@"}),e=e.replace(new RegExp("\\s*\\s*","g"),function(e,t){return(-1===n.indexOf(t)?"\n":"")+""}),e=e.replace(new RegExp("\\s*<("+t+")("+i+")>\\s*","g"),function(e,t,i){return"\n<"+t+i+">"+(-1===n.indexOf(t)?"\n":"")}),e=e.replace(/]*)>\n\t*\n(\t*)

\n$2\\s*","g"),"<$1$2>\n");var o,a,l,s=e.split(/\n/),c=0,h=new RegExp("^<("+t+")"),u=new RegExp("^$"),f=!1;for(o=0,a=s.length;a>o;o++){if(l=s[o],f=!1,l.match(h)?-1===n.indexOf(RegExp.$1)&&(f=!0):l.match(u)&&c--,c>0){var d=c;for(s[o]="";d--;)s[o]+=" ";s[o]+=l}f&&c++}for(e=s.join("\n"),o=0,a=r.length;a>o;o++)e=e.replace("@@@WCF_PRE_BACKUP_"+o+"@@@",r[o]);return e.trim()}}}; +$.Redactor.prototype.WoltLabSource=function(){"use strict";return{init:function(){function e(e){elBySelAll(".icon, .fa",e,function(e){var t=e.className.split(" ");t=t.filter(function(e){return"fa"===e||"icon"===e?!1:e.match(/^icon\d{2}$/)?!1:e.match(/^fa-[a-z\-]+$/)?!1:!0}),e.className=t.join(" "),""===e.className.trim()&&""===e.innerHTML&&elRemove(e)})}var t=this.$element[0].id,n=function(e){elBySelAll("woltlab-quote",e,function(e){if(2===e.childElementCount&&"P"===e.children[0].nodeName&&"P"===e.children[1].nodeName){var t=e.children[0];if(""===t.innerHTML.trim()){var n=e.children[1];"
"===n.innerHTML.trim()&&e.removeChild(t)}}})},i=function(e){elBySelAll("pre, woltlab-quote, woltlab-spoiler",e,function(e){e.removeAttribute("data-title")}),WCF.System.Event.fireEvent("com.woltlab.wcf.redactor2","source_"+i+"_"+t,{div:e})};this.source.setCaretOnShow=function(){},this.source.setCaretOnHide=function(e){return e};var r=this.source.hide;this.source.hide=function(){var t=$("

").html(this.source.$textarea.val());e(t[0]),this.source.$textarea.val(t[0].innerHTML),r.call(this),setTimeout(function(){this.focus.end(),n(this.core.editor()[0])}.bind(this),100),this.placeholder.enable()}.bind(this);var o=this.source.$textarea[0];this.$element[0].parentNode.insertBefore(o,this.$element[0]);var l=this.source.show;this.source.show=function(){var e=this.$editor[0].offsetHeight;l.call(this),o.style.setProperty("height",Math.ceil(e)+"px",""),o.style.setProperty("display","block","");var t=elCreate("div");t.innerHTML=o.value,n(t),i(t),o.value=this.WoltLabSource.format(t.innerHTML),o.selectionStart=o.selectionEnd=o.value.length}.bind(this),WCF.System.Event.addListener("com.woltlab.wcf.redactor2","validate_"+t,function(e){o.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=["ul","ol","li"];this.block.tags.forEach(function(e){t.push(e)}),t=t.join("|").toLowerCase();var n=["p","li"],i="[^'\">]*(?:(?:\"[^\"]*\"|'[^']*')[^'\">]*)*",r=[];e=e.replace(new RegExp("[sS]*?","g"),function(e){return r.push(e),"@@@WCF_PRE_BACKUP_"+(r.length-1)+"@@@"}),e=e.replace(new RegExp("\\s*\\s*","g"),function(e,t){return(-1===n.indexOf(t)?"\n":"")+""}),e=e.replace(new RegExp("\\s*<("+t+")("+i+")>\\s*","g"),function(e,t,i){return"\n<"+t+i+">"+(-1===n.indexOf(t)?"\n":"")}),e=e.replace(/]*)>\n\t*\n(\t*)

\n$2\\s*","g"),"<$1$2>\n");var o,l,a,s=e.split(/\n/),c=0,u=new RegExp("^<("+t+")"),h=new RegExp("^$"),f=!1;for(o=0,l=s.length;l>o;o++){if(a=s[o],f=!1,a.match(u)?-1===n.indexOf(RegExp.$1)&&(f=!0):a.match(h)&&c--,c>0){var d=c;for(s[o]="";d--;)s[o]+=" ";s[o]+=a}f&&c++}for(e=s.join("\n"),o=0,l=r.length;l>o;o++)e=e.replace("@@@WCF_PRE_BACKUP_"+o+"@@@",r[o]);return e.trim()}}}; // 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))}}}; // WoltLabTable.js -- 2.20.1