From 3460289751e36b8122ade747ed9b63316e2848a8 Mon Sep 17 00:00:00 2001 From: "woltlab.com" Date: Fri, 23 Sep 2016 17:32:25 +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 9bbdcd3798..32b51c7258 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js @@ -61,7 +61,7 @@ $.Redactor.prototype.WoltLabReply=function(){"use strict";var t=null,e=null,s=nu // WoltLabSize.js $.Redactor.prototype.WoltLabSize=function(){"use strict";return{init:function(){for(var e,t=[8,10,12,14,18,24,36],i=this.WoltLabSize.setSize.bind(this),o={},s=0,a=t.length;a>s;s++)e=t[s],o["size_"+e]={title:e,func:i};o.removeSize={title:this.lang.get("remove-size"),func:this.WoltLabSize.removeSize.bind(this)};var n=this.button.add("woltlabSize","");this.button.addDropdown(n,o),n.data("dropdown").find("a").each(function(e,t){t.className.match(/redactor-dropdown-size_(\d{1,2})/)&&(t.parentNode.classList.add("woltlab-size-"+RegExp.$1),t.parentNode.classList.add("woltlab-size-selection"))}),WCF.System.Event.addListener("com.woltlab.wcf.redactor2","convertTags_"+this.$element[0].id,function(e){elBySelAll("woltlab-size",e.div,function(i){i.className.match(/^woltlab-size-(\d{1,2})$/)&&-1!==t.indexOf(~~RegExp.$1)&&e.addToStorage(i,["class"])})})},setSize:function(e){this.selection.save(),require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(t){this.buffer.set(),t.format(this.$editor[0],"woltlab-size","woltlab-size-"+e.replace(/^size_/,"")),this.buffer.set()}.bind(this))},removeSize:function(){this.selection.save(),require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(e){this.buffer.set(),e.removeFormat(this.$editor[0],"woltlab-size"),this.buffer.set()}.bind(this))}}}; // WoltLabSmiley.js -$.Redactor.prototype.WoltLabSmiley=function(){"use strict";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(t){this.buffer.set(),this.insert.html(t.img.cloneNode().outerHTML)}}}; +$.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){this.buffer.set();var e="wscSmiley_"+this.uuid+"_"+t++,n=i.img.cloneNode();n.id=e,this.insert.html(n.outerHTML),n=elById(e),n.outerHTML=n.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))}}}; // WoltLabSpoiler.js -- 2.20.1