Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Wed, 24 Aug 2016 09:25:38 +0000 (11:25 +0200)
committerwoltlab.com <woltlab@woltlab.com>
Wed, 24 Aug 2016 09:25:38 +0000 (11:25 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js

index 54229561b2eb3eb50ea3fcf63f3142003586c2a5..da196435dc9306a1d3a54a6b2185fe7fdf8729b3 100644 (file)
@@ -19,7 +19,7 @@ $.Redactor.prototype.WoltLabCaret=function(){"use strict";return{init:function()
 // WoltLabClean.js
 $.Redactor.prototype.WoltLabClean=function(){"use strict";return{init:function(){var n=this.clean.onSet;this.clean.onSet=function(t){return n.call(this,t.replace(/\u200B/g,""))}.bind(this);var t=this.clean.onSync;this.clean.onSync=function(n){var e,i={};return-1!==n.indexOf("<pre")&&(e=elCreate("div"),e.innerHTML=n,elBySelAll("pre",e,function(n){var t=WCF.getUUID();i[t]=n.textContent,n.textContent=t}),n=e.innerHTML),n=t.call(this,n),e&&(e.innerHTML=n,elBySelAll("pre",e,function(n){n.textContent=i[n.textContent]}),n=e.innerHTML),n}.bind(this);var e=this.clean.savePreFormatting;this.clean.savePreFormatting=function(n){var t=this.clean.encodeEntities;return this.clean.encodeEntities=function(n){return WCF.String.escapeHTML(n)},n=e.call(this,n),this.clean.encodeEntities=t,n}.bind(this)}}};
 // WoltLabCode.js
-$.Redactor.prototype.WoltLabCode=function(){"use strict";return{init:function(){this.source.setCaretOnShow=function(){},this.source.setCaretOnHide=function(t){return t},require(["WoltLabSuite/Core/Ui/Redactor/Code"],function(t){new t(this)}.bind(this))}}};
+$.Redactor.prototype.WoltLabCode=function(){"use strict";return{init:function(){require(["WoltLabSuite/Core/Ui/Redactor/Code"],function(t){new t(this)}.bind(this))}}};
 // WoltLabColor.js
 $.Redactor.prototype.WoltLabColor=function(){"use strict";return{init:function(){for(var o,t=["000000","800000","8B4513","2F4F4F","008080","000080","4B0082","696969","B22222","A52A2A","DAA520","006400","40E0D0","0000CD","800080","808080","FF0000","FF8C00","FFD700","008000","00FFFF","0000FF","EE82EE","A9A9A9","FFA07A","FFA500","FFFF00","00FF00","AFEEEE","ADD8E6","DDA0DD","D3D3D3","FFF0F5","FAEBD7","FFFFE0","F0FFF0","F0FFFF","F0F8FF","E6E6FA","FFFFFF"],F=this.WoltLabColor.setColor.bind(this),r={removeColor:{title:this.lang.get("remove-color"),func:this.WoltLabColor.removeColor.bind(this)}},e=0,l=t.length;l>e;e++)o=t[e],r["color_"+o]={title:"#"+o,func:F};var i=this.button.add("woltlabColor","");this.button.addDropdown(i,r),i.data("dropdown").find("a").each(function(o,t){t.className.match(/redactor-dropdown-color_([A-F0-9]{6})/)&&(t.parentNode.classList.add("woltlab-color-"+RegExp.$1),t.parentNode.classList.add("woltlab-color-selection"))})},setColor:function(o){o=o.replace(/^color_/,""),require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(t){this.buffer.set(),t.format(this.$editor[0],"woltlab-color","woltlab-color-"+o)}.bind(this))},removeColor:function(){require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(o){this.buffer.set(),o.removeFormat(this.$editor[0],"woltlab-color")}.bind(this))}}};
 // WoltLabDropdown.js
@@ -50,6 +50,8 @@ $.Redactor.prototype.WoltLabQuote=function(){"use strict";return{init:function()
 $.Redactor.prototype.WoltLabSize=function(){"use strict";return{init:function(){for(var t,e=[8,10,12,14,18,24,36],i=this.WoltLabSize.setSize.bind(this),o={},a=0,r=e.length;r>a;a++)t=e[a],o["size_"+t]={title:t,func:i};o.removeSize={title:this.lang.get("remove-size"),func:this.WoltLabSize.removeSize.bind(this)};var s=this.button.add("woltlabSize","");this.button.addDropdown(s,o),s.data("dropdown").find("a").each(function(t,e){e.className.match(/redactor-dropdown-size_(\d{1,2})/)&&(e.parentNode.classList.add("woltlab-size-"+RegExp.$1),e.parentNode.classList.add("woltlab-size-selection"))})},setSize:function(t){require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(e){this.buffer.set(),e.format(this.$editor[0],"woltlab-size","woltlab-size-"+t.replace(/^size_/,""))}.bind(this))},removeSize:function(){require(["WoltLabSuite/Core/Ui/Redactor/Format"],function(t){this.buffer.set(),t.removeFormat(this.$editor[0],"woltlab-size")}.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.insert.html('<img src="'+t.path+'" class="smiley" alt="'+t.code+'">')}}};
+// 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)}.bind(this);var e=this.source.$textarea[0],i=this.source.show;this.source.show=function(){i.call(this),e.selectionStart=e.selectionEnd=e.value.length}.bind(this)}}};
 // 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