From: woltlab.com Date: Thu, 29 May 2014 21:56:06 +0000 (+0200) Subject: Updating minified JavaScript files X-Git-Tag: 2.1.0_Alpha_1~779^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fe58d66207c2e81d512bef751a1dbc259280fca2;p=GitHub%2FWoltLab%2FWCF.git Updating minified JavaScript files --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js index 61e9a14ae4..498a55bfac 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wcombined.min.js @@ -9,7 +9,7 @@ if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wfontfamily={init:fu // wfontsize.js if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wfontsize={init:function(){var d=[8,10,12,14,18,24,36];var e={};var a=this;for(var g=0,f=d.length;g18){c.css("line-height","1em")}}}}; // wmonkeypatch.js -if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wmonkeypatch={init:function(){var c=this;var b=this.indentingStart;this.indentingStart=function(f){if(c.mpIndentingStart(f)){b.call(c,f)}};var a=this.buildEventKeydown;this.buildEventKeydown=function(f){if(c.callback("wkeydown",f)!==false){a.call(c,f)}};var e=this.toggleCode;this.toggleCode=function(g){var f=c.normalize(c.$editor.css("height"));e.call(c,g);c.$source.height(f)};var d=this.modalInit;this.modalInit=function(h,g,f,i){c.mpModalInit();d.call(c,h,g,f,i)};this.setOption("modalOpenedCallback",$.proxy(this.modalOpenedCallback,this));this.modalTemplatesInit()},cleanRemoveSpaces:function(b,a){return b},inlineRemoveStyle:function(a){this.selectionSave();this.inlineEachNodes(function(b){$(b).css(a,"");this.removeEmptyAttr(b,"style")});this.$editor.find("inline").each(function(c,d){if(!d.attributes.length){var b=$(d);b.replaceWith(b.html())}});this.selectionRestore();this.sync()},mpIndentingStart:function(a){if(this.getBlock().tagName=="LI"){return true}return false},modalTemplatesInit:function(){this.setOption("modal_image",'
");this.setOption("modal_image_edit",this.getOption("modal_image").replace('",'"));this.setOption("modal_link",'
");this.setOption("modal_table",'
");$.extend(this.opts,{modal_file:String()+'
',modal_video:String()+'
"})},mpModalInit:function(){if(!$("#redactor_modal_overlay").length){this.$overlay=$('
').css({height:"100%",zIndex:50000}).hide().appendTo(document.body)}if(!$("#redactor_modal").length){this.$modal=$('
').css({display:"none",zIndex:50001}).appendTo(document.body);$('
').appendTo(this.$modal);$('
').appendTo(this.$modal)}this.$modal.children(".dialogContent").removeClass("dialogForm")},modalOpenedCallback:function(){var a=0;if(this.$modal.find(".formSubmit").length){a=this.$modal.find(".formSubmit").outerHeight();this.$modal.children(".dialogContent").addClass("dialogForm").css({marginBottom:a+"px"})}else{this.$modal.children(".dialogContent").removeClass("dialogForm").css({marginBottom:"0px"})}var b=this.$modal.getDimensions("outer");this.$modal.css({marginLeft:-1*Math.round(b.width/2)+"px",marginTop:-1*Math.round(b.height/2)+"px"})},inlineEachNodes:function(e){var b=this.getRange(),c=this.getElement(),a=this.getNodes(),d;if(b.collapsed||b.startContainer===b.endContainer&&c){a=$(c);d=true}$.each(a,$.proxy(function(g,j){if(!d&&j.tagName!=="INLINE"){var f=this.getSelectionText();var k=$(j).parent().text();var h=this.removeZeroWidthSpace(f)==this.removeZeroWidthSpace(k);if(h&&j.parentNode.tagName==="INLINE"&&!$(j.parentNode).hasClass("redactor_editor")){j=j.parentNode}else{return}}e.call(this,j)},this))}}; +if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wmonkeypatch={init:function(){var c=this;var b=this.indentingStart;this.indentingStart=function(g){if(c.mpIndentingStart(g)){b.call(c,g)}};var a=this.buildEventKeydown;this.buildEventKeydown=function(g){if(c.callback("wkeydown",g)!==false){a.call(c,g)}};var f=this.toggleCode;this.toggleCode=function(h){var g=c.normalize(c.$editor.css("height"));f.call(c,h);c.$source.height(g)};var e=this.modalInit;this.modalInit=function(i,h,g,j){c.mpModalInit();e.call(c,i,h,g,j)};var d=this.buttonActiveObserver;this.buttonActiveObserver=function(g,h){c.mpButtonActiveObserver(g,h);d.call(c,g,h)};if(this.opts.activeButtons){this.$editor.off("mouseup.redactor keyup.redactor").on("mouseup.redactor keyup.redactor",$.proxy(this.buttonActiveObserver,this))}this.$toolbar.find("a.re-indent, a.re-outdent").addClass("redactor_button_disabled");this.setOption("modalOpenedCallback",$.proxy(this.modalOpenedCallback,this));this.modalTemplatesInit();window.dtdesign=this},cleanRemoveSpaces:function(b,a){return b},mpButtonActiveObserver:function(b,c){var a=this.getParent();if(a!==false&&$(a).closest("ul",this.$editor.get()[0]).length!=0){this.$toolbar.find("a.re-indent, a.re-outdent").removeClass("redactor_button_disabled")}else{this.$toolbar.find("a.re-indent, a.re-outdent").addClass("redactor_button_disabled")}},inlineRemoveStyle:function(a){this.selectionSave();this.inlineEachNodes(function(b){$(b).css(a,"");this.removeEmptyAttr(b,"style")});this.$editor.find("inline").each(function(c,d){if(!d.attributes.length){var b=$(d);b.replaceWith(b.html())}});this.selectionRestore();this.sync()},mpIndentingStart:function(a){if(this.getBlock().tagName=="LI"){return true}return false},modalTemplatesInit:function(){this.setOption("modal_image",'
");this.setOption("modal_image_edit",this.getOption("modal_image").replace('",'"));this.setOption("modal_link",'
");this.setOption("modal_table",'
");$.extend(this.opts,{modal_file:String()+'
',modal_video:String()+'
"})},mpModalInit:function(){if(!$("#redactor_modal_overlay").length){this.$overlay=$('
').css({height:"100%",zIndex:50000}).hide().appendTo(document.body)}if(!$("#redactor_modal").length){this.$modal=$('
').css({display:"none",zIndex:50001}).appendTo(document.body);$('
').appendTo(this.$modal);$('
').appendTo(this.$modal)}this.$modal.children(".dialogContent").removeClass("dialogForm")},modalOpenedCallback:function(){var a=0;if(this.$modal.find(".formSubmit").length){a=this.$modal.find(".formSubmit").outerHeight();this.$modal.children(".dialogContent").addClass("dialogForm").css({marginBottom:a+"px"})}else{this.$modal.children(".dialogContent").removeClass("dialogForm").css({marginBottom:"0px"})}var b=this.$modal.getDimensions("outer");this.$modal.css({marginLeft:-1*Math.round(b.width/2)+"px",marginTop:-1*Math.round(b.height/2)+"px"})},inlineEachNodes:function(e){var b=this.getRange(),c=this.getElement(),a=this.getNodes(),d;if(b.collapsed||b.startContainer===b.endContainer&&c){a=$(c);d=true}$.each(a,$.proxy(function(g,j){if(!d&&j.tagName!=="INLINE"){var f=this.getSelectionText();var k=$(j).parent().text();var h=this.removeZeroWidthSpace(f)==this.removeZeroWidthSpace(k);if(h&&j.parentNode.tagName==="INLINE"&&!$(j.parentNode).hasClass("redactor_editor")){j=j.parentNode}else{return}}e.call(this,j)},this))}}; // wupload.js if(!RedactorPlugins){var RedactorPlugins={}}RedactorPlugins.wupload={_attachmentsContainer:null,init:function(){var a=this;this.buttonReplace("upload","upload","Upload",function(){a._attachmentsContainer.toggle()});this.buttonAwesome("upload","fa-upload");this._initAttachments()},_initAttachments:function(){this._attachmentsContainer=$('
').hide().appendTo(this.$box);var f=$('