Updating minified JavaScript files
authorwoltlab.com <woltlab@woltlab.com>
Tue, 27 Sep 2016 12:08:45 +0000 (14:08 +0200)
committerwoltlab.com <woltlab@woltlab.com>
Tue, 27 Sep 2016 12:08:45 +0000 (14:08 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/combined.min.js

index 5217e9398c0963a89d15d111d204a293340bcc76..f6ab5f23d78c07e5e60b2d205a9a976e9ebf9ea5 100644 (file)
@@ -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*</("+t+")>","g"),"\n</$1>"),e=e.replace(/\s*<li>/g,"\n<li>"),e=e.replace(/<\/li>\s*/g,"</li>\n"),e=e.replace(/<li>([\s\S]*?)<\/li>/g,function(e,t){var i=t.trim().split("\n");return"<li>\n        "+i.join("\n    ")+"\n</li>"}),e=e.replace(/\s*<\/p>\s*/g,"\n</p>\n"),e=e.replace(/<p>\s*<br>\s*<\/p>/g,"<p><br></p>"),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